Class XmlWriteSchemaTransformFormatProvider
java.lang.Object
org.apache.beam.sdk.io.fileschematransform.XmlWriteSchemaTransformFormatProvider
- All Implemented Interfaces:
FileWriteSchemaTransformFormatProvider
,Providers.Identifyable
@AutoService(FileWriteSchemaTransformFormatProvider.class)
public class XmlWriteSchemaTransformFormatProvider
extends Object
implements FileWriteSchemaTransformFormatProvider
A
FileWriteSchemaTransformFormatProvider
for XML 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 usingXmlIO.Sink
andFileIO.Write
, another for errored-out rows.Returns an id that uniquely represents this among others implementing its derived interface.
-
Constructor Details
-
XmlWriteSchemaTransformFormatProvider
public XmlWriteSchemaTransformFormatProvider()
-
-
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 usingXmlIO.Sink
andFileIO.Write
, another for errored-out rows.- Specified by:
buildTransform
in interfaceFileWriteSchemaTransformFormatProvider
-