public class BeamTextCSVTable extends BeamTextTable
BeamTextCSVTable
is a BeamTextTable
which formatted in CSV.
CSVFormat
itself has many dialects, check its javadoc for more info.
beamRecordSqlType
Constructor and Description |
---|
BeamTextCSVTable(BeamRecordSqlType beamSqlRowType,
java.lang.String filePattern)
CSV table with
DEFAULT format. |
BeamTextCSVTable(BeamRecordSqlType beamRecordSqlType,
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. |
CSVFormat |
getCsvFormat() |
java.lang.String |
getFilePattern() |
getSourceType
getRowType
public BeamTextCSVTable(BeamRecordSqlType beamSqlRowType, java.lang.String filePattern)
DEFAULT
format.public BeamTextCSVTable(BeamRecordSqlType beamRecordSqlType, 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.public CSVFormat getCsvFormat()
public java.lang.String getFilePattern()