Class AvroWriteSchemaTransformFormatProvider
java.lang.Object
org.apache.beam.sdk.io.fileschematransform.AvroWriteSchemaTransformFormatProvider
- All Implemented Interfaces:
FileWriteSchemaTransformFormatProvider
,Providers.Identifyable
@AutoService(FileWriteSchemaTransformFormatProvider.class)
public class AvroWriteSchemaTransformFormatProvider
extends Object
implements FileWriteSchemaTransformFormatProvider
A
FileWriteSchemaTransformFormatProvider
for avro format.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildTransform
(FileWriteSchemaTransformConfiguration configuration, Schema schema) Builds aPTransform
that transforms aRow
PCollection
into resultPCollectionTuple
with two tags, one for file names written usingAvroIO.Write
, another for errored-out rows.Returns an id that uniquely represents this among others implementing its derived interface.
-
Constructor Details
-
AvroWriteSchemaTransformFormatProvider
public AvroWriteSchemaTransformFormatProvider()
-
-
Method Details
-
identifier
Description copied from interface:Providers.Identifyable
Returns an id that uniquely represents this among others implementing its derived interface.- Specified by:
identifier
in interfaceProviders.Identifyable
-
buildTransform
public PTransform<PCollection<Row>,PCollectionTuple> buildTransform(FileWriteSchemaTransformConfiguration configuration, Schema schema) Builds aPTransform
that transforms aRow
PCollection
into resultPCollectionTuple
with two tags, one for file names written usingAvroIO.Write
, another for errored-out rows.- Specified by:
buildTransform
in interfaceFileWriteSchemaTransformFormatProvider
-