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. |
PCollection.IsBounded |
isBounded()
Whether this table is bounded (known to be finite) or unbounded (may or may not be finite).
|
getSchemapublic BeamPCollectionTable(PCollection<InputT> upstream)
public PCollection.IsBounded isBounded()
BeamSqlTablepublic PCollection<Row> buildIOReader(PBegin begin)
BeamSqlTablePCollection<Row> from source.public POutput buildIOWriter(PCollection<Row> input)
BeamSqlTableIO.write() instance to write to target.