PreresolvingDatumReader<T> for reading data to GenericRecord classes or primitives. For more information about performance considerations for choosing this implementation.
More...
|
class | GenericRecordAccess |
|
|
| GenericDatumReader (Schema writerSchema, Schema readerSchema) |
| Initializes a new instance of the GenericDatumReader<T> class.
|
|
T | Read (T reuse, Decoder decoder) |
| 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.- Parameters
-
reuse | Optional object to deserialize the datum into. May be null. |
decoder | Decoder to read data from. |
- Returns
- Deserialized datum.
|
|
PreresolvingDatumReader<T> for reading data to GenericRecord classes or primitives. For more information about performance considerations for choosing this implementation.
- Template Parameters
-
T | Type to deserialize data into. |
◆ GenericDatumReader()
Initializes a new instance of the GenericDatumReader<T> class.
- Parameters
-
writerSchema | Schema that was used to write the data. |
readerSchema | Schema to use to read the data. |
◆ IsReusable()
Indicates if it's possible to reuse an object of the specified type. Generally false for immutable objects like int, long, string, etc but may differ between the Specific and Generic implementations. Used to avoid retrieving the existing value if it's not reusable.
- Parameters
-
tag | Schema type to test for reusability. |
Reimplemented from Avro.Generic.PreresolvingDatumReader< T >.
The documentation for this class was generated from the following file:
- src/apache/main/Generic/GenericDatumReader.cs