| Package | Description |
|---|---|
| org.apache.flink.table.catalog | |
| org.apache.flink.table.factories |
| Modifier and Type | Method and Description |
|---|---|
void |
Catalog.alterDatabase(String name,
CatalogDatabase newDatabase,
boolean ignoreIfNotExists)
Modify an existing database.
|
void |
Catalog.alterFunction(ObjectPath functionPath,
CatalogFunction newFunction,
boolean ignoreIfNotExists)
Modify an existing function.
|
void |
Catalog.alterPartition(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec,
CatalogPartition newPartition,
boolean ignoreIfNotExists)
Alter a partition.
|
void |
Catalog.alterPartitionColumnStatistics(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec,
CatalogColumnStatistics columnStatistics,
boolean ignoreIfNotExists)
Update the column statistics of a table partition.
|
void |
Catalog.alterPartitionStatistics(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec,
CatalogTableStatistics partitionStatistics,
boolean ignoreIfNotExists)
Update the statistics of a table partition.
|
void |
Catalog.alterTable(ObjectPath tablePath,
CatalogBaseTable newTable,
boolean ignoreIfNotExists)
Modifies an existing table or view.
|
default void |
Catalog.alterTable(ObjectPath tablePath,
CatalogBaseTable newTable,
List<TableChange> tableChanges,
boolean ignoreIfNotExists)
Modifies an existing table or view.
|
void |
Catalog.alterTableColumnStatistics(ObjectPath tablePath,
CatalogColumnStatistics columnStatistics,
boolean ignoreIfNotExists)
Update the column statistics of a table.
|
void |
Catalog.alterTableStatistics(ObjectPath tablePath,
CatalogTableStatistics tableStatistics,
boolean ignoreIfNotExists)
Update the statistics of a table.
|
default List<CatalogColumnStatistics> |
Catalog.bulkGetPartitionColumnStatistics(ObjectPath tablePath,
List<CatalogPartitionSpec> partitionSpecs)
Get a list of column statistics for given partitions.
|
default List<CatalogTableStatistics> |
Catalog.bulkGetPartitionStatistics(ObjectPath tablePath,
List<CatalogPartitionSpec> partitionSpecs)
Get a list of statistics of given partitions.
|
void |
Catalog.close()
Close the catalog when it is no longer needed and release any resource that it might be
holding.
|
void |
CatalogStore.close()
Close the catalog store when it is no longer needed and release any resource that it might be
holding.
|
boolean |
CatalogStore.contains(String catalogName)
Return whether the catalog exists in the catalog store.
|
void |
Catalog.createDatabase(String name,
CatalogDatabase database,
boolean ignoreIfExists)
Create a database.
|
void |
Catalog.createFunction(ObjectPath functionPath,
CatalogFunction function,
boolean ignoreIfExists)
Create a function.
|
void |
Catalog.createPartition(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec,
CatalogPartition partition,
boolean ignoreIfExists)
Create a partition.
|
void |
Catalog.createTable(ObjectPath tablePath,
CatalogBaseTable table,
boolean ignoreIfExists)
Creates a new table or view.
|
boolean |
Catalog.databaseExists(String databaseName)
Check if a database exists in this catalog.
|
default void |
Catalog.dropDatabase(String name,
boolean ignoreIfNotExists)
Drop a database.
|
void |
Catalog.dropDatabase(String name,
boolean ignoreIfNotExists,
boolean cascade)
Drop a database.
|
void |
Catalog.dropFunction(ObjectPath functionPath,
boolean ignoreIfNotExists)
Drop a function.
|
void |
Catalog.dropPartition(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec,
boolean ignoreIfNotExists)
Drop a partition.
|
void |
Catalog.dropTable(ObjectPath tablePath,
boolean ignoreIfNotExists)
Drop a table or view.
|
boolean |
Catalog.functionExists(ObjectPath functionPath)
Check whether a function exists or not.
|
Optional<CatalogDescriptor> |
CatalogStore.getCatalog(String catalogName)
Get a catalog by name.
|
CatalogDatabase |
Catalog.getDatabase(String databaseName)
Get a database from this catalog.
|
String |
Catalog.getDefaultDatabase()
Get the name of the default database for this catalog.
|
CatalogFunction |
Catalog.getFunction(ObjectPath functionPath)
Get the function.
|
CatalogPartition |
Catalog.getPartition(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec)
Get a partition of the given table.
|
CatalogColumnStatistics |
Catalog.getPartitionColumnStatistics(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec)
Get the column statistics of a partition.
|
CatalogTableStatistics |
Catalog.getPartitionStatistics(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec)
Get the statistics of a partition.
|
default Procedure |
Catalog.getProcedure(ObjectPath procedurePath)
Get the procedure.
|
CatalogBaseTable |
Catalog.getTable(ObjectPath tablePath)
|
default CatalogBaseTable |
Catalog.getTable(ObjectPath tablePath,
long timestamp)
|
CatalogColumnStatistics |
Catalog.getTableColumnStatistics(ObjectPath tablePath)
Get the column statistics of a table.
|
CatalogTableStatistics |
Catalog.getTableStatistics(ObjectPath tablePath)
Get the statistics of a table.
|
Set<String> |
CatalogStore.listCatalogs()
Retrieves the names of all registered catalogs.
|
List<String> |
Catalog.listDatabases()
Get the names of all databases in this catalog.
|
List<String> |
Catalog.listFunctions(String dbName)
List the names of all functions in the given database.
|
List<CatalogPartitionSpec> |
Catalog.listPartitions(ObjectPath tablePath)
Get CatalogPartitionSpec of all partitions of the table.
|
List<CatalogPartitionSpec> |
Catalog.listPartitions(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec)
Get CatalogPartitionSpec of all partitions that is under the given CatalogPartitionSpec in
the table.
|
List<CatalogPartitionSpec> |
Catalog.listPartitionsByFilter(ObjectPath tablePath,
List<Expression> filters)
Get CatalogPartitionSpec of partitions by expression filters in the table.
|
default List<String> |
Catalog.listProcedures(String dbName)
List the names of all procedures in the given database.
|
List<String> |
Catalog.listTables(String databaseName)
Get names of all tables and views under this database.
|
List<String> |
Catalog.listViews(String databaseName)
Get names of all views under this database.
|
CatalogFunction |
TemporaryOperationListener.onCreateTemporaryFunction(ObjectPath functionPath,
CatalogFunction function)
This method is called when a temporary function is to be created in this catalog.
|
CatalogBaseTable |
TemporaryOperationListener.onCreateTemporaryTable(ObjectPath tablePath,
CatalogBaseTable table)
This method is called when a temporary table or view is to be created in this catalog.
|
void |
TemporaryOperationListener.onDropTemporaryFunction(ObjectPath functionPath)
This method is called when a temporary function in this catalog is to be dropped.
|
void |
TemporaryOperationListener.onDropTemporaryTable(ObjectPath tablePath)
This method is called when a temporary table or view in this catalog is to be dropped.
|
void |
Catalog.open()
Open the catalog.
|
void |
CatalogStore.open()
Open the catalog store.
|
boolean |
Catalog.partitionExists(ObjectPath tablePath,
CatalogPartitionSpec partitionSpec)
Check whether a partition exists or not.
|
void |
CatalogStore.removeCatalog(String catalogName,
boolean ignoreIfNotExists)
Remove a catalog with the given catalog name.
|
void |
Catalog.renameTable(ObjectPath tablePath,
String newTableName,
boolean ignoreIfNotExists)
Rename an existing table or view.
|
void |
CatalogStore.storeCatalog(String catalogName,
CatalogDescriptor catalog)
Stores a catalog under the given catalog name.
|
boolean |
Catalog.tableExists(ObjectPath tablePath)
Check if a table or view exists in this catalog.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CatalogStoreFactory.close()
Close the CatalogStoreFactory.
|
void |
CatalogStoreFactory.open(CatalogStoreFactory.Context context)
Initialize the CatalogStoreFactory.
|
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.