public class DataCatalogTableProvider extends FullNameTableProvider implements java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
BeamSqlTable |
buildBeamSqlTable(Table table)
Build a
BeamSqlTable using the given table meta info. |
void |
close() |
static DataCatalogTableProvider |
create(DataCatalogPipelineOptions options) |
static com.google.cloud.datacatalog.v1beta1.DataCatalogClient |
createDataCatalogClient(DataCatalogPipelineOptions options) |
void |
createTable(Table table)
Creates a table.
|
void |
dropTable(java.lang.String tableName)
Drops a table.
|
@Nullable Table |
getTable(java.lang.String tableName)
Get a specific table from this provider it is present, or null if it is not present.
|
Table |
getTableByFullName(TableName fullTableName) |
java.util.Map<java.lang.String,Table> |
getTables()
Get all tables from this provider.
|
java.lang.String |
getTableType()
Gets the table type this provider handles.
|
boolean |
setSchemaIfNotPresent(java.lang.String resource,
Schema schema) |
getSubProvider, registerKnownTableNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubProviderspublic static DataCatalogTableProvider create(DataCatalogPipelineOptions options)
public java.lang.String getTableType()
TableProvidergetTableType in interface TableProviderpublic void createTable(Table table)
TableProvidercreateTable in interface TableProviderpublic void dropTable(java.lang.String tableName)
TableProviderdropTable in interface TableProviderpublic java.util.Map<java.lang.String,Table> getTables()
TableProvidergetTables in interface TableProviderpublic @Nullable Table getTable(java.lang.String tableName)
TableProvidergetTable in interface TableProviderpublic Table getTableByFullName(TableName fullTableName)
getTableByFullName in class FullNameTableProviderpublic BeamSqlTable buildBeamSqlTable(Table table)
TableProviderBeamSqlTable using the given table meta info.buildBeamSqlTable in interface TableProvider@Internal public static com.google.cloud.datacatalog.v1beta1.DataCatalogClient createDataCatalogClient(DataCatalogPipelineOptions options)
@Internal public boolean setSchemaIfNotPresent(java.lang.String resource, Schema schema)
public void close()
close in interface java.lang.AutoCloseable