public class BeamTextCSVTable extends BeamTextTable
BeamTextCSVTable is a BeamTextTable which formatted in CSV.
CSVFormat itself has many dialects, check its javadoc for more info.
filePatternbeamSqlRowType| Constructor and Description |
|---|
BeamTextCSVTable(BeamRecordSqlType beamSqlRowType,
java.lang.String filePattern)
CSV table with
DEFAULT format. |
BeamTextCSVTable(BeamRecordSqlType beamSqlRowType,
java.lang.String filePattern,
CSVFormat csvFormat) |
| Modifier and Type | Method and Description |
|---|---|
PCollection<BeamRecord> |
buildIOReader(Pipeline pipeline)
create a
PCollection<BeamSqlRow> from source. |
PTransform<? super PCollection<BeamRecord>,PDone> |
buildIOWriter()
create a
IO.write() instance to write to target. |
getSourceTypegetRowTypepublic BeamTextCSVTable(BeamRecordSqlType beamSqlRowType, java.lang.String filePattern)
DEFAULT format.public BeamTextCSVTable(BeamRecordSqlType beamSqlRowType, java.lang.String filePattern, CSVFormat csvFormat)
public PCollection<BeamRecord> buildIOReader(Pipeline pipeline)
BeamSqlTablePCollection<BeamSqlRow> from source.public PTransform<? super PCollection<BeamRecord>,PDone> buildIOWriter()
BeamSqlTableIO.write() instance to write to target.