Class DataGeneratorTable
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.datagen.DataGeneratorTable
- All Implemented Interfaces:
Serializable,BeamSqlTable
Represents a 'datagen' table within a Beam SQL pipeline. This class extends
SchemaBaseBeamTable to correctly implement the full BeamSqlTable interface.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.extensions.sql.meta.SchemaBaseBeamTable
schema -
Constructor Summary
Constructors -
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.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).Methods inherited from class org.apache.beam.sdk.extensions.sql.meta.SchemaBaseBeamTable
getSchemaMethods inherited from class org.apache.beam.sdk.extensions.sql.meta.BaseBeamTable
constructFilter, supportsProjects
-
Constructor Details
-
DataGeneratorTable
-
-
Method Details
-
isBounded
Description copied from interface:BeamSqlTableWhether this table is bounded (known to be finite) or unbounded (may or may not be finite). -
buildIOReader
Description copied from interface:BeamSqlTablecreate aPCollection<Row>from source. -
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. -
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
-