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 class
static 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_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 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:BeamSqlTable
create aPCollection<Row>
from source.- Specified by:
buildIOReader
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
- Overrides:
buildIOReader
in classBaseBeamTable
-
buildIOWriter
Description copied from interface:BeamSqlTable
create aIO.write()
instance to write to target.- Specified by:
buildIOWriter
in interfaceBeamSqlTable
-
supportsProjects
Description copied from interface:BeamSqlTable
Whether project push-down is supported by the IO API.- Specified by:
supportsProjects
in interfaceBeamSqlTable
- Overrides:
supportsProjects
in classBaseBeamTable
-
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
- Overrides:
constructFilter
in classBaseBeamTable
-
isBounded
Description copied from interface:BeamSqlTable
Whether this table is bounded (known to be finite) or unbounded (may or may not be finite).- Specified by:
isBounded
in interfaceBeamSqlTable
-
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
- Overrides:
getTableStatistics
in classBaseBeamTable
-