Class PubsubLiteTableProvider
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.meta.provider.InMemoryMetaTableProvider
-
- org.apache.beam.sdk.extensions.sql.meta.provider.pubsublite.PubsubLiteTableProvider
-
- All Implemented Interfaces:
TableProvider
@AutoService(TableProvider.class) public class PubsubLiteTableProvider extends InMemoryMetaTableProvider
Pub/Sub Lite table provider.Pub/Sub Lite tables may be constructed with:
CREATE EXTERNAL TABLE tableName( message_key BYTES [NOT NULL], // optional, always present on read publish_timestamp TIMESTAMP [NOT NULL], // optional, readable tables only, always present on read event_timestamp TIMESTAMP [NOT NULL], // optional, null if not present in readable table, unset in message if null in writable table. NOT NULL enforces field presence on read attributes ARRAY<ROW<key VARCHAR, values ARRAY<BYTES>>>, // optional, null values never present on reads or handled on writes payload BYTES | ROW<[INSERT SCHEMA HERE]>, ) TYPE pubsublite // For writable tables LOCATION 'projects/[PROJECT]/locations/[CLOUD ZONE]/topics/[TOPIC]' // For readable tables LOCATION 'projects/[PROJECT]/locations/[CLOUD ZONE]/subscriptions/[SUBSCRIPTION]' TBLPROPERTIES '{ "deadLetterQueue": "[DLQ_KIND]:[DLQ_ID]", // optional "format": "[FORMAT]", // optional // format params }'
-
-
Constructor Summary
Constructors Constructor Description PubsubLiteTableProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeamSqlTablebuildBeamSqlTable(Table table)Build aBeamSqlTableusing the given table meta info.java.lang.StringgetTableType()Gets the table type this provider handles.-
Methods inherited from class org.apache.beam.sdk.extensions.sql.meta.provider.InMemoryMetaTableProvider
createTable, dropTable, getTables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.beam.sdk.extensions.sql.meta.provider.TableProvider
getSubProvider, getSubProviders, getTable, supportsPartitioning
-
-
-
-
Method Detail
-
getTableType
public java.lang.String getTableType()
Description copied from interface:TableProviderGets the table type this provider handles.
-
buildBeamSqlTable
public BeamSqlTable buildBeamSqlTable(Table table)
Description copied from interface:TableProviderBuild aBeamSqlTableusing the given table meta info.
-
-