public class BeamTextCSVTable extends BeamTextTable
BeamTextCSVTable
is a BeamTextTable
which formatted in CSV.
CSVFormat
itself has many dialects, check its javadoc for more info.
schema
Constructor and Description |
---|
BeamTextCSVTable(Schema beamSchema,
java.lang.String filePattern)
CSV table with
DEFAULT format. |
BeamTextCSVTable(Schema schema,
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>,POutput> |
buildIOWriter()
create a
IO.write() instance to write to target. |
org.apache.commons.csv.CSVFormat |
getCsvFormat() |
java.lang.String |
getFilePattern() |
getSourceType
getSchema
public BeamTextCSVTable(Schema beamSchema, java.lang.String filePattern)
DEFAULT
format.public BeamTextCSVTable(Schema schema, 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>,POutput> buildIOWriter()
BeamSqlTable
IO.write()
instance to write to target.public org.apache.commons.csv.CSVFormat getCsvFormat()
public java.lang.String getFilePattern()