On Mon, Jun 16, 2014 at 7:59 AM, Han, Xiaodan <xiaodan....@baml.com> wrote:
> Is GenericDatumReader thread safe? What about the writer.

Yes, a DatumReader instance may be used in multiple threads.  Encoder
and Decoder are not thread-safe, but DatumReader and DatumWriter are.

> If we change the behavior of the Reader, would you suggest we also make the 
> same change for the Writer?

Yes, re-using a single GenericDatumWriter to write multiple objects
should improve performance.

Doug

Reply via email to