public abstract class AvroDatumFactory<T> extends java.lang.Object implements AvroSource.DatumReaderFactory<T>, AvroSink.DatumWriterFactory<T>
DatumReader and DatumWriter for given schemas.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AvroDatumFactory.GenericDatumFactory
Specialized  
AvroDatumFactory for GenericRecord. | 
static class  | 
AvroDatumFactory.ReflectDatumFactory<T>
Specialized  
AvroDatumFactory for java classes transforming to avro through reflection. | 
static class  | 
AvroDatumFactory.SpecificDatumFactory<T>
Specialized  
AvroDatumFactory for SpecificRecord. | 
| Constructor and Description | 
|---|
AvroDatumFactory(java.lang.Class<T> type)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(@Nullable java.lang.Object other)  | 
static AvroDatumFactory<GenericRecord> | 
generic()
Returns an  
AvroDatumFactory instance for GenericRecord. | 
java.lang.Class<T> | 
getType()
Returns the type for the datum factory. 
 | 
int | 
hashCode()  | 
static <T> AvroDatumFactory<T> | 
of(java.lang.Class<T> type)
Returns an  
AvroDatumFactory instance for the provided element type. | 
static <T> AvroDatumFactory<T> | 
of(java.lang.Class<T> type,
  boolean useReflectApi)
Returns an  
AvroDatumFactory instance for the provided element type respecting Avro's
 Reflect* or Specific* suite for encoding and decoding. | 
static <T> AvroDatumFactory<T> | 
reflect(java.lang.Class<T> type)
Returns an  
AvroDatumFactory instance for the provided element type respecting Avro's
 Reflect* suite for encoding and decoding. | 
static <T> AvroDatumFactory<T> | 
specific(java.lang.Class<T> type)
Returns an  
AvroDatumFactory instance for the provided element type respecting Avro's
 Specific* suite for encoding and decoding. | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitapplyapplyprotected final java.lang.Class<T> type
public AvroDatumFactory(java.lang.Class<T> type)
public static AvroDatumFactory<GenericRecord> generic()
AvroDatumFactory instance for GenericRecord.public static <T> AvroDatumFactory<T> specific(java.lang.Class<T> type)
AvroDatumFactory instance for the provided element type respecting Avro's
 Specific* suite for encoding and decoding.public static <T> AvroDatumFactory<T> reflect(java.lang.Class<T> type)
AvroDatumFactory instance for the provided element type respecting Avro's
 Reflect* suite for encoding and decoding.public static <T> AvroDatumFactory<T> of(java.lang.Class<T> type)
AvroDatumFactory instance for the provided element type.public static <T> AvroDatumFactory<T> of(java.lang.Class<T> type, boolean useReflectApi)
AvroDatumFactory instance for the provided element type respecting Avro's
 Reflect* or Specific* suite for encoding and decoding.public java.lang.Class<T> getType()
public boolean equals(@Nullable java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object