Top Description Methods
org.apache.avro.io

public Interface DatumReader<D>

Known Direct Subinterfaces
org.apache.avro.io.FastReaderBuilder.FieldReader
Known Direct Implementers
org.apache.avro.data.Json.ObjectReader, org.apache.avro.generic.GenericDatumReader
Imports
java.io.IOException, org.apache.avro.Schema

Read data of a schema.

Determines the in-memory data representation.

Method Summary

Modifier and TypeMethod and Description
public D
read(D reuse, Decoder in)

Read a datum.

public void
setSchema(Schema schema)

Set the writer's schema.

Method Detail

readback to summary
public D read(D reuse, Decoder in) throws IOException

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.

setSchemaback to summary
public void setSchema(Schema schema)

Set the writer's schema.