public static class AvroDatumFactory.SpecificDatumFactory<T> extends AvroDatumFactory<T>
AvroDatumFactory
for SpecificRecord
.AvroDatumFactory.GenericDatumFactory, AvroDatumFactory.ReflectDatumFactory<T>, AvroDatumFactory.SpecificDatumFactory<T>
type
Constructor and Description |
---|
SpecificDatumFactory(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.SpecificDatumFactory<T> |
of(java.lang.Class<T> type) |
public SpecificDatumFactory(java.lang.Class<T> type)
public DatumReader<T> apply(Schema writer, Schema reader)
public DatumWriter<T> apply(Schema writer)
public static <T> AvroDatumFactory.SpecificDatumFactory<T> of(java.lang.Class<T> type)