Class CsvWriteSchemaTransformFormatProvider
java.lang.Object
org.apache.beam.sdk.io.fileschematransform.CsvWriteSchemaTransformFormatProvider
- All Implemented Interfaces:
FileWriteSchemaTransformFormatProvider
,Providers.Identifyable
@AutoService(FileWriteSchemaTransformFormatProvider.class)
public class CsvWriteSchemaTransformFormatProvider
extends Object
implements FileWriteSchemaTransformFormatProvider
A
FileWriteSchemaTransformFormatProvider
for CSV format.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildTransform
(FileWriteSchemaTransformConfiguration configuration, Schema schema) Builds aPTransform
that writes aRow
PCollection
and outputs the resultingPCollectionTuple
with two tags, one for the file names, and another errored-out rows.Returns an id that uniquely represents this among others implementing its derived interface.
-
Constructor Details
-
CsvWriteSchemaTransformFormatProvider
public CsvWriteSchemaTransformFormatProvider()
-
-
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) Description copied from interface:FileWriteSchemaTransformFormatProvider
Builds aPTransform
that writes aRow
PCollection
and outputs the resultingPCollectionTuple
with two tags, one for the file names, and another errored-out rows.- Specified by:
buildTransform
in interfaceFileWriteSchemaTransformFormatProvider
-