public class BeamTextCSVTable extends BeamTextTable
BeamTextCSVTable
is a BeamTextTable
which formatted in CSV.
CSVFormat
itself has many dialects, check its javadoc for more info.
filePattern
beamSqlRowType
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. |
getSourceType
getRowType
public 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)
BeamSqlTable
PCollection<BeamSqlRow>
from source.public PTransform<? super PCollection<BeamRecord>,PDone> buildIOWriter()
BeamSqlTable
IO.write()
instance to write to target.