Class BaseBeamTable
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.BaseBeamTable
- All Implemented Interfaces:
BeamSqlTable
- Direct Known Subclasses:
HCatalogTable
,SchemaBaseBeamTable
Basic implementation of
BeamSqlTable
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildIOReader
(PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames) create aPCollection<Row>
from source with predicate and/or project pushed-down.constructFilter
(List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> filter) Generate an IO implementation ofBeamSqlTableFilter
for predicate push-down.getTableStatistics
(PipelineOptions options) Estimates the number of rows or the rate for unbounded Tables.Whether project push-down is supported by the IO API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.beam.sdk.extensions.sql.meta.BeamSqlTable
buildIOReader, buildIOWriter, getSchema, isBounded
-
Constructor Details
-
BaseBeamTable
public BaseBeamTable()
-
-
Method Details
-
getTableStatistics
Description copied from interface:BeamSqlTable
Estimates the number of rows or the rate for unbounded Tables. If it is not possible to estimate the row count or rate it will return BeamTableStatistics.BOUNDED_UNKNOWN.- Specified by:
getTableStatistics
in interfaceBeamSqlTable
-
buildIOReader
public PCollection<Row> buildIOReader(PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames) Description copied from interface:BeamSqlTable
create aPCollection<Row>
from source with predicate and/or project pushed-down.- Specified by:
buildIOReader
in interfaceBeamSqlTable
-
constructFilter
public BeamSqlTableFilter constructFilter(List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> filter) Description copied from interface:BeamSqlTable
Generate an IO implementation ofBeamSqlTableFilter
for predicate push-down.- Specified by:
constructFilter
in interfaceBeamSqlTable
-
supportsProjects
Description copied from interface:BeamSqlTable
Whether project push-down is supported by the IO API.- Specified by:
supportsProjects
in interfaceBeamSqlTable
-