Class AvroDatumFactory<T>
java.lang.Object
org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory<T>
- All Implemented Interfaces:
 Serializable,AvroSink.DatumWriterFactory<T>,AvroSource.DatumReaderFactory<T>
- Direct Known Subclasses:
 AvroDatumFactory.GenericDatumFactory,AvroDatumFactory.ReflectDatumFactory,AvroDatumFactory.SpecificDatumFactory
public abstract class AvroDatumFactory<T>
extends Object
implements AvroSource.DatumReaderFactory<T>, AvroSink.DatumWriterFactory<T>
Create 
DatumReader and DatumWriter for given schemas.- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecializedAvroDatumFactoryforGenericRecord.static classSpecializedAvroDatumFactoryfor java classes transforming to avro through reflection.static classSpecializedAvroDatumFactoryforSpecificRecord. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AvroDatumFactory<GenericRecord> generic()Returns anAvroDatumFactoryinstance for GenericRecord.getType()Returns the type for the datum factory.inthashCode()static <T> AvroDatumFactory<T> Returns anAvroDatumFactoryinstance for the provided element type.static <T> AvroDatumFactory<T> Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Reflect* or Specific* suite for encoding and decoding.static <T> AvroDatumFactory<T> Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Reflect* suite for encoding and decoding.static <T> AvroDatumFactory<T> Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Specific* suite for encoding and decoding.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.sdk.extensions.avro.io.AvroSink.DatumWriterFactory
applyMethods inherited from interface org.apache.beam.sdk.extensions.avro.io.AvroSource.DatumReaderFactory
apply 
- 
Field Details
- 
type
 
 - 
 - 
Constructor Details
- 
AvroDatumFactory
 
 - 
 - 
Method Details
- 
generic
Returns anAvroDatumFactoryinstance for GenericRecord. - 
specific
Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Specific* suite for encoding and decoding. - 
reflect
Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Reflect* suite for encoding and decoding. - 
of
Returns anAvroDatumFactoryinstance for the provided element type. - 
of
Returns anAvroDatumFactoryinstance for the provided element type respecting Avro's Reflect* or Specific* suite for encoding and decoding. - 
getType
Returns the type for the datum factory. - 
equals
 - 
hashCode
public int hashCode() 
 -