Interface FlinkfulCatalogService
- All Known Implementing Classes:
FlinkfulCatalogServiceImpl
public interface FlinkfulCatalogService
-
Method Summary
Modifier and TypeMethodDescriptionbooleandatabaseExists(CatalogType type, String catalog, String database) voiddeleteDatabase(CatalogType type, String catalog, String database) voiddeleteFunction(CatalogType type, String catalog, String database, String functionName) voiddeleteTable(CatalogType type, String catalog, String database, String table) voiddeleteView(CatalogType type, String catalog, String database, String viewName) booleanfunctionExists(CatalogType type, String catalog, String database, String function) getDatabase(CatalogType type, String catalog, String database) getFunction(CatalogType type, String catalog, String database, String function) getTable(CatalogType type, String catalog, String database, String table) getView(CatalogType type, String catalog, String database, String view) voidinsertDatabase(CatalogDatabaseDTO database) voidinsertFunction(CatalogType type, String catalog, String database, CatalogFunctionDTO function) voidinsertTable(CatalogType type, String catalog, String database, CatalogTableDTO table) voidinsertView(CatalogType type, String catalog, String database, CatalogTableDTO view) booleanisDatabaseEmpty(CatalogType type, String catalog, String database) listDatabases(CatalogType type, String catalog) listFunctions(CatalogType type, String catalog, String database) listTables(CatalogType type, String catalog, String database) listViews(CatalogType type, String catalog, String database) voidrenameTable(CatalogType type, String catalog, String database, String currentName, String newName) voidrenameView(CatalogType type, String catalog, String database, String currentName, String newName) booleantableExists(CatalogType type, String catalog, String database, String table) voidupdateDatabase(CatalogDatabaseDTO database) voidupdateFunction(CatalogType type, String catalog, String database, CatalogFunctionDTO function) voidupdateTable(CatalogType type, String catalog, String database, CatalogTableDTO table) voidupdateView(CatalogType type, String catalog, String database, CatalogTableDTO view) booleanviewExists(CatalogType type, String catalog, String database, String view)
-
Method Details
-
listDatabases
-
getDatabase
-
databaseExists
-
insertDatabase
void insertDatabase(CatalogDatabaseDTO database) throws org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException
-
updateDatabase
void updateDatabase(CatalogDatabaseDTO database) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
deleteDatabase
void deleteDatabase(CatalogType type, String catalog, String database) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
isDatabaseEmpty
-
listTables
-
getTable
-
tableExists
-
insertTable
void insertTable(CatalogType type, String catalog, String database, CatalogTableDTO table) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.TableAlreadyExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
updateTable
void updateTable(CatalogType type, String catalog, String database, CatalogTableDTO table) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
renameTable
void renameTable(CatalogType type, String catalog, String database, String currentName, String newName) throws org.apache.flink.table.catalog.exceptions.TableAlreadyExistException, org.apache.flink.table.catalog.exceptions.TableNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotExistException
-
deleteTable
void deleteTable(CatalogType type, String catalog, String database, String table) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
listViews
-
getView
-
viewExists
-
insertView
void insertView(CatalogType type, String catalog, String database, CatalogTableDTO view) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.TableAlreadyExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
updateView
void updateView(CatalogType type, String catalog, String database, CatalogTableDTO view) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
renameView
void renameView(CatalogType type, String catalog, String database, String currentName, String newName) throws org.apache.flink.table.catalog.exceptions.TableNotExistException, org.apache.flink.table.catalog.exceptions.TableAlreadyExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
deleteView
void deleteView(CatalogType type, String catalog, String database, String viewName) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
listFunctions
-
getFunction
Optional<CatalogFunctionDTO> getFunction(CatalogType type, String catalog, String database, String function) -
functionExists
-
insertFunction
void insertFunction(CatalogType type, String catalog, String database, CatalogFunctionDTO function) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException, org.apache.flink.table.catalog.exceptions.FunctionAlreadyExistException - Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.FunctionAlreadyExistException
-
updateFunction
void updateFunction(CatalogType type, String catalog, String database, CatalogFunctionDTO function) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistException
-
deleteFunction
void deleteFunction(CatalogType type, String catalog, String database, String functionName) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException - Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistException
-