public class BeamPCollectionTable extends BaseBeamTable
BeamPCollectionTable converts a PCollection<Row> as a virtual table, then a
downstream query can query directly.schema| Constructor and Description |
|---|
BeamPCollectionTable(PCollection<Row> upstream) |
| 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.
|
getSchemapublic BeamPCollectionTable(PCollection<Row> upstream)
public BeamIOType getSourceType()
BeamSqlTableBeamIOType is used to validate the sources.public PCollection<Row> buildIOReader(Pipeline pipeline)
BeamSqlTablePCollection<BeamSqlRow> from source.public PTransform<? super PCollection<Row>,POutput> buildIOWriter()
BeamSqlTableIO.write() instance to write to target.