public class BeamPCollectionTable<InputT> extends SchemaBaseBeamTable
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. |
BeamTableStatistics |
getTableStatistics(PipelineOptions options)
Estimates the number of rows or the rate for unbounded Tables.
|
PCollection.IsBounded |
isBounded()
Whether this table is bounded (known to be finite) or unbounded (may or may not be finite).
|
getSchemabuildIOReader, constructFilter, supportsProjectspublic 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.public BeamTableStatistics getTableStatistics(PipelineOptions options)
BeamSqlTable