public interface BeamSqlTable
Modifier and Type | Method and Description |
---|---|
PCollection<Row> |
buildIOReader(PBegin begin)
create a
PCollection<Row> from source. |
PCollection<Row> |
buildIOReader(PBegin begin,
BeamSqlTableFilter filters,
java.util.List<java.lang.String> fieldNames)
create a
PCollection<Row> from source with predicate and/or project pushed-down. |
POutput |
buildIOWriter(PCollection<Row> input)
create a
IO.write() instance to write to target. |
BeamSqlTableFilter |
constructFilter(java.util.List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> filter)
Generate an IO implementation of
BeamSqlTableFilter for predicate push-down. |
Schema |
getSchema()
Get the schema info of the table.
|
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).
|
ProjectSupport |
supportsProjects()
Whether project push-down is supported by the IO API.
|
PCollection<Row> buildIOReader(PBegin begin)
PCollection<Row>
from source.PCollection<Row> buildIOReader(PBegin begin, BeamSqlTableFilter filters, java.util.List<java.lang.String> fieldNames)
PCollection<Row>
from source with predicate and/or project pushed-down.POutput buildIOWriter(PCollection<Row> input)
IO.write()
instance to write to target.BeamSqlTableFilter constructFilter(java.util.List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> filter)
BeamSqlTableFilter
for predicate push-down.ProjectSupport supportsProjects()
PCollection.IsBounded isBounded()
Schema getSchema()
BeamTableStatistics getTableStatistics(PipelineOptions options)