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 aPTransformthat writes aRowPCollectionand outputs the resultingPCollectionTuplewith 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.IdentifyableReturns an id that uniquely represents this among others implementing its derived interface.- Specified by:
identifierin interfaceProviders.Identifyable
-
buildTransform
public PTransform<PCollection<Row>,PCollectionTuple> buildTransform(FileWriteSchemaTransformConfiguration configuration, Schema schema) Description copied from interface:FileWriteSchemaTransformFormatProviderBuilds aPTransformthat writes aRowPCollectionand outputs the resultingPCollectionTuplewith two tags, one for the file names, and another errored-out rows.- Specified by:
buildTransformin interfaceFileWriteSchemaTransformFormatProvider
-