@AutoService(value=FileWriteSchemaTransformFormatProvider.class) public class JsonWriteSchemaTransformFormatProvider extends java.lang.Object implements FileWriteSchemaTransformFormatProvider
FileWriteSchemaTransformFormatProvider
for JSON format.Constructor and Description |
---|
JsonWriteSchemaTransformFormatProvider() |
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 TextIO.Write ,
another for errored-out rows. |
java.lang.String |
identifier()
Returns an id that uniquely represents this among others implementing its derived interface.
|
public JsonWriteSchemaTransformFormatProvider()
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 TextIO.Write
,
another for errored-out rows.buildTransform
in interface FileWriteSchemaTransformFormatProvider