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_40_0.org.apache.calcite.rex.RexNode> filter) Generate an IO implementation ofBeamSqlTableFilterfor 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, waitMethods 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:BeamSqlTableEstimates 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:
getTableStatisticsin interfaceBeamSqlTable
-
buildIOReader
public PCollection<Row> buildIOReader(PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames) Description copied from interface:BeamSqlTablecreate aPCollection<Row>from source with predicate and/or project pushed-down.- Specified by:
buildIOReaderin interfaceBeamSqlTable
-
constructFilter
public BeamSqlTableFilter constructFilter(List<org.apache.beam.vendor.calcite.v1_40_0.org.apache.calcite.rex.RexNode> filter) Description copied from interface:BeamSqlTableGenerate an IO implementation ofBeamSqlTableFilterfor predicate push-down.- Specified by:
constructFilterin interfaceBeamSqlTable
-
supportsProjects
Description copied from interface:BeamSqlTableWhether project push-down is supported by the IO API.- Specified by:
supportsProjectsin interfaceBeamSqlTable
-