T - Type T to be written.public final class ReflectionDatumWriter<T> extends Object implements DatumWriter<T>
DatumWriter that uses java reflection to encode data. The encoding schema it uses is
the same as the binary encoding as specified in Avro, with the enhancement of support non-string
map key.| Constructor and Description |
|---|
ReflectionDatumWriter(Schema schema) |
public ReflectionDatumWriter(Schema schema)
public Schema getSchema()
public void encode(T data, Encoder encoder) throws IOException
encode in interface DatumWriter<T>IOExceptionCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.