@Experimental public class MongoDbTable extends SchemaBaseBeamTable implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
MongoDbTable.DocumentToRow |
static class |
MongoDbTable.RowToDocument |
schema| 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. |
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.
|
getSchemapublic PCollection<Row> buildIOReader(PBegin begin)
BeamSqlTablePCollection<Row> from source.buildIOReader in interface BeamSqlTablepublic PCollection<Row> buildIOReader(PBegin begin, BeamSqlTableFilter filters, java.util.List<java.lang.String> fieldNames)
BeamSqlTablePCollection<Row> from source with predicate and/or project pushed-down.buildIOReader in interface BeamSqlTablebuildIOReader in class BaseBeamTablepublic POutput buildIOWriter(PCollection<Row> input)
BeamSqlTableIO.write() instance to write to target.buildIOWriter in interface BeamSqlTablepublic ProjectSupport supportsProjects()
BeamSqlTablesupportsProjects in interface BeamSqlTablesupportsProjects in class BaseBeamTablepublic BeamSqlTableFilter constructFilter(java.util.List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rex.RexNode> filter)
BeamSqlTableBeamSqlTableFilter for predicate push-down.constructFilter in interface BeamSqlTableconstructFilter in class BaseBeamTablepublic PCollection.IsBounded isBounded()
BeamSqlTableisBounded in interface BeamSqlTablepublic BeamTableStatistics getTableStatistics(PipelineOptions options)
BeamSqlTablegetTableStatistics in interface BeamSqlTable