@Experimental public class BeamBigQueryTable extends BaseBeamTable implements java.io.Serializable
BeamBigQueryTable
represent a BigQuery table as a target. This provider does not
currently support being a source.schema
Constructor and Description |
---|
BeamBigQueryTable(Schema beamSchema,
java.lang.String tableSpec) |
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. |
BeamIOType |
getSourceType()
In Beam SQL, there's no difference between a batch query and a streaming query.
|
getSchema
public BeamBigQueryTable(Schema beamSchema, java.lang.String tableSpec)
public BeamIOType getSourceType()
BeamSqlTable
BeamIOType
is used to validate the sources.getSourceType
in interface BeamSqlTable
public PCollection<Row> buildIOReader(Pipeline pipeline)
BeamSqlTable
PCollection<BeamSqlRow>
from source.buildIOReader
in interface BeamSqlTable
public PTransform<? super PCollection<Row>,POutput> buildIOWriter()
BeamSqlTable
IO.write()
instance to write to target.buildIOWriter
in interface BeamSqlTable