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. |
PCollection.IsBounded |
isBounded()
Whether this table is bounded (known to be finite) or unbounded (may or may not be finite).
|
getSchema
buildIOReader, constructFilter, getTableStatistics, supportsProjects
public BeamPCollectionTable(PCollection<InputT> upstream)
public PCollection.IsBounded isBounded()
BeamSqlTable
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.