public class BeamTextCSVTable extends BeamTextTable
BeamTextCSVTable
is a BeamTextTable
which formatted in CSV.
CSVFormat
itself has many dialects, check its javadoc for more info.
rowType
Constructor and Description |
---|
BeamTextCSVTable(RowType beamRowType,
java.lang.String filePattern)
CSV table with
DEFAULT format. |
BeamTextCSVTable(RowType rowType,
java.lang.String filePattern,
org.apache.commons.csv.CSVFormat csvFormat) |
Modifier and Type | Method and Description |
---|---|
PCollection<Row> |
buildIOReader(Pipeline pipeline)
create a
PCollection<BeamSqlRow> from source. |
PTransform<? super PCollection<Row>,PDone> |
buildIOWriter()
create a
IO.write() instance to write to target. |
org.apache.commons.csv.CSVFormat |
getCsvFormat() |
java.lang.String |
getFilePattern() |
getSourceType
getRowType
public BeamTextCSVTable(RowType beamRowType, java.lang.String filePattern)
DEFAULT
format.public BeamTextCSVTable(RowType rowType, java.lang.String filePattern, org.apache.commons.csv.CSVFormat csvFormat)
public PCollection<Row> buildIOReader(Pipeline pipeline)
BeamSqlTable
PCollection<BeamSqlRow>
from source.public PTransform<? super PCollection<Row>,PDone> buildIOWriter()
BeamSqlTable
IO.write()
instance to write to target.public org.apache.commons.csv.CSVFormat getCsvFormat()
public java.lang.String getFilePattern()