public class BeamPCollectionTable extends BaseBeamTable
BeamPCollectionTable
converts a PCollection<BeamSqlRow>
as a virtual table,
then a downstream query can query directly.rowType
Modifier | Constructor and Description |
---|---|
|
BeamPCollectionTable(PCollection<Row> upstream,
RowType beamRowType) |
protected |
BeamPCollectionTable(RowType beamRowType) |
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. |
BeamIOType |
getSourceType()
In Beam SQL, there's no difference between a batch query and a streaming
query.
|
getRowType
protected BeamPCollectionTable(RowType beamRowType)
public BeamPCollectionTable(PCollection<Row> upstream, RowType beamRowType)
public BeamIOType getSourceType()
BeamSqlTable
BeamIOType
is used to validate the sources.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.