@AutoService(value=FileWriteSchemaTransformFormatProvider.class) public class AvroWriteSchemaTransformFormatProvider extends java.lang.Object implements FileWriteSchemaTransformFormatProvider
FileWriteSchemaTransformFormatProvider
for avro format.Constructor and Description |
---|
AvroWriteSchemaTransformFormatProvider() |
Modifier and Type | Method and Description |
---|---|
PTransform<PCollection<Row>,PCollectionTuple> |
buildTransform(FileWriteSchemaTransformConfiguration configuration,
Schema schema)
Builds a
PTransform that transforms a Row PCollection into result
PCollectionTuple with two tags, one for file names written using AvroIO.Write ,
another for errored-out rows. |
java.lang.String |
identifier()
Returns an id that uniquely represents this among others implementing its derived interface.
|
public AvroWriteSchemaTransformFormatProvider()
public java.lang.String identifier()
Providers.Identifyable
identifier
in interface Providers.Identifyable
public PTransform<PCollection<Row>,PCollectionTuple> buildTransform(FileWriteSchemaTransformConfiguration configuration, Schema schema)
PTransform
that transforms a Row
PCollection
into result
PCollectionTuple
with two tags, one for file names written using AvroIO.Write
,
another for errored-out rows.buildTransform
in interface FileWriteSchemaTransformFormatProvider