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 |
---|---|
org.apache.avro.io.DatumWriter<T> |
apply(org.apache.avro.Schema writer) |
org.apache.avro.io.DatumReader<T> |
apply(org.apache.avro.Schema writer,
org.apache.avro.Schema reader) |
static <T> AvroDatumFactory.ReflectDatumFactory<T> |
of(java.lang.Class<T> type) |
public ReflectDatumFactory(java.lang.Class<T> type)
public org.apache.avro.io.DatumReader<T> apply(org.apache.avro.Schema writer, org.apache.avro.Schema reader)
public org.apache.avro.io.DatumWriter<T> apply(org.apache.avro.Schema writer)
public static <T> AvroDatumFactory.ReflectDatumFactory<T> of(java.lang.Class<T> type)