public static class AvroDatumFactory.ReflectDatumFactory<T> extends AvroDatumFactory<T>
AvroDatumFactory for java classes transforming to avro through reflection.AvroDatumFactory.GenericDatumFactory, AvroDatumFactory.ReflectDatumFactory<T>, AvroDatumFactory.SpecificDatumFactory<T>type| Constructor and Description |
|---|
ReflectDatumFactory(java.lang.Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
DatumWriter<T> |
apply(Schema writer) |
DatumReader<T> |
apply(Schema writer,
Schema reader) |
static <T> AvroDatumFactory.ReflectDatumFactory<T> |
of(java.lang.Class<T> type) |
public ReflectDatumFactory(java.lang.Class<T> type)
public DatumReader<T> apply(Schema writer, Schema reader)
public DatumWriter<T> apply(Schema writer)
public static <T> AvroDatumFactory.ReflectDatumFactory<T> of(java.lang.Class<T> type)