Class MongoDbTable
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.BaseBeamTable
org.apache.beam.sdk.extensions.sql.meta.SchemaBaseBeamTable
org.apache.beam.sdk.extensions.sql.meta.provider.mongodb.MongoDbTable
- All Implemented Interfaces:
Serializable,BeamSqlTable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.apache.beam.sdk.extensions.sql.meta.SchemaBaseBeamTable
schema -
Method Summary
Modifier and TypeMethodDescriptionbuildIOReader(PBegin begin) create aPCollection<Row>from source.buildIOReader(PBegin begin, BeamSqlTableFilter filters, List<String> fieldNames) create aPCollection<Row>from source with predicate and/or project pushed-down.buildIOWriter(PCollection<Row> input) create aIO.write()instance to write to target.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 this table is bounded (known to be finite) or unbounded (may or may not be finite).Whether project push-down is supported by the IO API.Methods inherited from class org.apache.beam.sdk.extensions.sql.meta.SchemaBaseBeamTable
getSchema
-
Method Details
-
buildIOReader
Description copied from interface:BeamSqlTablecreate aPCollection<Row>from source.- Specified by:
buildIOReaderin 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- Overrides:
buildIOReaderin classBaseBeamTable
-
buildIOWriter
Description copied from interface:BeamSqlTablecreate aIO.write()instance to write to target.- Specified by:
buildIOWriterin interfaceBeamSqlTable
-
supportsProjects
Description copied from interface:BeamSqlTableWhether project push-down is supported by the IO API.- Specified by:
supportsProjectsin interfaceBeamSqlTable- Overrides:
supportsProjectsin classBaseBeamTable
-
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- Overrides:
constructFilterin classBaseBeamTable
-
isBounded
Description copied from interface:BeamSqlTableWhether this table is bounded (known to be finite) or unbounded (may or may not be finite).- Specified by:
isBoundedin interfaceBeamSqlTable
-
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- Overrides:
getTableStatisticsin classBaseBeamTable
-