public class BeamPCollectionTable<InputT> extends BaseBeamTable
BeamPCollectionTable
converts a PCollection<Row>
as a virtual table, then a
downstream query can query directly.schema
Constructor and Description |
---|
BeamPCollectionTable(PCollection<InputT> upstream) |
Modifier and Type | Method and Description |
---|---|
PCollection<Row> |
buildIOReader(PBegin begin)
create a
PCollection<Row> from source. |
POutput |
buildIOWriter(PCollection<Row> input)
create a
IO.write() instance to write to target. |
getSchema
public BeamPCollectionTable(PCollection<InputT> upstream)
public PCollection<Row> buildIOReader(PBegin begin)
BeamSqlTable
PCollection<Row>
from source.public POutput buildIOWriter(PCollection<Row> input)
BeamSqlTable
IO.write()
instance to write to target.