Class AvroDatumFactory.ReflectDatumFactory<T>
- java.lang.Object
-
- org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory<T>
-
- org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory.ReflectDatumFactory<T>
-
- All Implemented Interfaces:
java.io.Serializable,AvroSink.DatumWriterFactory<T>,AvroSource.DatumReaderFactory<T>
- Enclosing class:
- AvroDatumFactory<T>
public static class AvroDatumFactory.ReflectDatumFactory<T> extends AvroDatumFactory<T>
SpecializedAvroDatumFactoryfor java classes transforming to avro through reflection.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory
AvroDatumFactory.GenericDatumFactory, AvroDatumFactory.ReflectDatumFactory<T>, AvroDatumFactory.SpecificDatumFactory<T>
-
-
Field Summary
-
Fields inherited from class org.apache.beam.sdk.extensions.avro.io.AvroDatumFactory
type
-
-
Constructor Summary
Constructors Constructor Description ReflectDatumFactory(java.lang.Class<T> type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
ReflectDatumFactory
public ReflectDatumFactory(java.lang.Class<T> type)
-
-
Method Detail
-
apply
public org.apache.avro.io.DatumReader<T> apply(org.apache.avro.Schema writer, org.apache.avro.Schema reader)
-
apply
public org.apache.avro.io.DatumWriter<T> apply(org.apache.avro.Schema writer)
-
of
public static <T> AvroDatumFactory.ReflectDatumFactory<T> of(java.lang.Class<T> type)
-
-