Top Description Methods
org.apache.avro.io

public Interface DatumWriter<D>

Known Direct Implementers
org.apache.avro.data.Json.ObjectWriter, org.apache.avro.generic.GenericDatumWriter
Imports
java.io.IOException, org.apache.avro.Schema

Write data of a schema.

Implemented for different in-memory data representations.

Method Summary

Modifier and TypeMethod and Description
public void
setSchema(Schema schema)

Set the schema.

public void
write(D datum, Encoder out)

Write a datum.

Method Detail

setSchemaback to summary
public void setSchema(Schema schema)

Set the schema.

writeback to summary
public void write(D datum, Encoder out) throws IOException

Write a datum. Traverse the schema, depth first, writing each leaf value in the schema from the datum to the output.