类 FlinkCatalog
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalog
-
- net.wicp.tams.common.flink.paimon.FlinkCatalog
-
- 所有已实现的接口:
org.apache.flink.table.catalog.Catalog
public class FlinkCatalog extends org.apache.flink.table.catalog.AbstractCatalogCatalog for paimon.
-
-
构造器概要
构造器 构造器 说明 FlinkCatalog(org.apache.paimon.catalog.Catalog catalog, String name, String defaultDatabase, ClassLoader classLoader, org.apache.paimon.options.Options options, long tenantId, long operate, String mysqlDefaultDb, String warehouse)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidalterDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase newDatabase, boolean ignoreIfNotExists)voidalterFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction newFunction, boolean ignoreIfNotExists)voidalterPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition newPartition, boolean ignoreIfNotExists)voidalterPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists)voidalterPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogTableStatistics partitionStatistics, boolean ignoreIfNotExists)voidalterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, boolean ignoreIfNotExists)voidalterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, List<org.apache.flink.table.catalog.TableChange> tableChanges, boolean ignoreIfNotExists)voidalterTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists)voidalterTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogTableStatistics tableStatistics, boolean ignoreIfNotExists)org.apache.paimon.catalog.Catalogcatalog()voidclose()voidcreateDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase database, boolean ignoreIfExists)voidcreateFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction function, boolean ignoreIfExists)voidcreatePartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition partition, boolean ignoreIfExists)voidcreateTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists)booleandatabaseExists(String databaseName)voiddropDatabase(String name, boolean ignoreIfNotExists, boolean cascade)voiddropFunction(org.apache.flink.table.catalog.ObjectPath functionPath, boolean ignoreIfNotExists)voiddropPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, boolean ignoreIfNotExists)voiddropTable(org.apache.flink.table.catalog.ObjectPath tablePath, boolean ignoreIfNotExists)static org.apache.paimon.schema.SchemafromCatalogTable(org.apache.flink.table.catalog.CatalogTable catalogTable)booleanfunctionExists(org.apache.flink.table.catalog.ObjectPath functionPath)org.apache.flink.table.catalog.CatalogDatabasegetDatabase(String databaseName)Optional<org.apache.flink.table.factories.Factory>getFactory()org.apache.flink.table.catalog.CatalogFunctiongetFunction(org.apache.flink.table.catalog.ObjectPath functionPath)org.apache.flink.table.catalog.CatalogPartitiongetPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)org.apache.flink.table.catalog.stats.CatalogColumnStatisticsgetPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)org.apache.flink.table.catalog.stats.CatalogTableStatisticsgetPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)org.apache.flink.table.catalog.CatalogTablegetTable(org.apache.flink.table.catalog.ObjectPath tablePath)org.apache.flink.table.catalog.stats.CatalogColumnStatisticsgetTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath)org.apache.flink.table.catalog.stats.CatalogTableStatisticsgetTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath)StringgetWarehouse()List<String>listDatabases()List<String>listFunctions(String dbName)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)List<org.apache.flink.table.catalog.CatalogPartitionSpec>listPartitionsByFilter(org.apache.flink.table.catalog.ObjectPath tablePath, List<org.apache.flink.table.expressions.Expression> filters)List<String>listTables(String databaseName)List<String>listViews(String databaseName)voidopen()booleanpartitionExists(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)voidrenameTable(org.apache.flink.table.catalog.ObjectPath tablePath, String newTableName, boolean ignoreIfNotExists)booleantableExists(org.apache.flink.table.catalog.ObjectPath tablePath)static org.apache.paimon.catalog.IdentifiertoIdentifier(org.apache.flink.table.catalog.ObjectPath path)
-
-
-
构造器详细资料
-
FlinkCatalog
public FlinkCatalog(org.apache.paimon.catalog.Catalog catalog, String name, String defaultDatabase, ClassLoader classLoader, org.apache.paimon.options.Options options, long tenantId, long operate, String mysqlDefaultDb, String warehouse)
-
-
方法详细资料
-
getWarehouse
public String getWarehouse()
-
catalog
public org.apache.paimon.catalog.Catalog catalog()
-
getFactory
public Optional<org.apache.flink.table.factories.Factory> getFactory()
-
listDatabases
public List<String> listDatabases() throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
databaseExists
public boolean databaseExists(String databaseName) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getDatabase
public org.apache.flink.table.catalog.CatalogDatabase getDatabase(String databaseName) throws org.apache.flink.table.catalog.exceptions.CatalogException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
createDatabase
public void createDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase database, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
dropDatabase
public void dropDatabase(String name, boolean ignoreIfNotExists, boolean cascade) throws org.apache.flink.table.catalog.exceptions.DatabaseNotEmptyException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.DatabaseNotEmptyExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
listTables
public List<String> listTables(String databaseName) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
getTable
public org.apache.flink.table.catalog.CatalogTable getTable(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
tableExists
public boolean tableExists(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
dropTable
public void dropTable(org.apache.flink.table.catalog.ObjectPath tablePath, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
createTable
public void createTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable table, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.TableAlreadyExistException, org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterTable
public void alterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
alterTable
public void alterTable(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogBaseTable newTable, List<org.apache.flink.table.catalog.TableChange> tableChanges, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
open
public final void open() throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
close
public final void close() throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
fromCatalogTable
public static org.apache.paimon.schema.Schema fromCatalogTable(org.apache.flink.table.catalog.CatalogTable catalogTable)
-
toIdentifier
public static org.apache.paimon.catalog.Identifier toIdentifier(org.apache.flink.table.catalog.ObjectPath path)
-
alterDatabase
public final void alterDatabase(String name, org.apache.flink.table.catalog.CatalogDatabase newDatabase, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
renameTable
public final void renameTable(org.apache.flink.table.catalog.ObjectPath tablePath, String newTableName, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException, org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableAlreadyExistException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogExceptionorg.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
listViews
public final List<String> listViews(String databaseName) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitions
public final List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitions
public final List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitions(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
listPartitionsByFilter
public final List<org.apache.flink.table.catalog.CatalogPartitionSpec> listPartitionsByFilter(org.apache.flink.table.catalog.ObjectPath tablePath, List<org.apache.flink.table.expressions.Expression> filters) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getPartition
public final org.apache.flink.table.catalog.CatalogPartition getPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.PartitionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.PartitionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
partitionExists
public final boolean partitionExists(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
createPartition
public final void createPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition partition, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
dropPartition
public final void dropPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterPartition
public final void alterPartition(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.CatalogPartition newPartition, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
listFunctions
public final List<String> listFunctions(String dbName) throws org.apache.flink.table.catalog.exceptions.CatalogException
- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getFunction
public final org.apache.flink.table.catalog.CatalogFunction getFunction(org.apache.flink.table.catalog.ObjectPath functionPath) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException, org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.FunctionNotExistExceptionorg.apache.flink.table.catalog.exceptions.CatalogException
-
functionExists
public final boolean functionExists(org.apache.flink.table.catalog.ObjectPath functionPath) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
createFunction
public final void createFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction function, boolean ignoreIfExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterFunction
public final void alterFunction(org.apache.flink.table.catalog.ObjectPath functionPath, org.apache.flink.table.catalog.CatalogFunction newFunction, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
dropFunction
public final void dropFunction(org.apache.flink.table.catalog.ObjectPath functionPath, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getTableStatistics
public final org.apache.flink.table.catalog.stats.CatalogTableStatistics getTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getTableColumnStatistics
public final org.apache.flink.table.catalog.stats.CatalogColumnStatistics getTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getPartitionStatistics
public final org.apache.flink.table.catalog.stats.CatalogTableStatistics getPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
getPartitionColumnStatistics
public final org.apache.flink.table.catalog.stats.CatalogColumnStatistics getPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterTableStatistics
public final void alterTableStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogTableStatistics tableStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterTableColumnStatistics
public final void alterTableColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterPartitionStatistics
public final void alterPartitionStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogTableStatistics partitionStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
alterPartitionColumnStatistics
public final void alterPartitionColumnStatistics(org.apache.flink.table.catalog.ObjectPath tablePath, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec, org.apache.flink.table.catalog.stats.CatalogColumnStatistics columnStatistics, boolean ignoreIfNotExists) throws org.apache.flink.table.catalog.exceptions.CatalogException- 抛出:
org.apache.flink.table.catalog.exceptions.CatalogException
-
-