Class FlinkfulCatalogServiceImpl
java.lang.Object
cn.sliew.flinkful.sql.catalog.service.impl.FlinkfulCatalogServiceImpl
- All Implemented Interfaces:
FlinkfulCatalogService
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
FlinkfulCatalogServiceImpl
public FlinkfulCatalogServiceImpl()
-
-
Method Details
-
listDatabases
- Specified by:
listDatabasesin interfaceFlinkfulCatalogService
-
getDatabase
- Specified by:
getDatabasein interfaceFlinkfulCatalogService
-
databaseExists
- Specified by:
databaseExistsin interfaceFlinkfulCatalogService
-
insertDatabase
public void insertDatabase(CatalogDatabaseDTO database) throws org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException - Specified by:
insertDatabasein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseAlreadyExistException
-
updateDatabase
public void updateDatabase(CatalogDatabaseDTO database) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException - Specified by:
updateDatabasein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
deleteDatabase
public void deleteDatabase(CatalogType type, String catalog, String database) throws org.apache.flink.table.catalog.exceptions.DatabaseNotExistException - Specified by:
deleteDatabasein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistException
-
isDatabaseEmpty
- Specified by:
isDatabaseEmptyin interfaceFlinkfulCatalogService
-
listTables
- Specified by:
listTablesin interfaceFlinkfulCatalogService
-
getTable
public Optional<CatalogTableDTO> getTable(CatalogType type, String catalog, String database, String table) - Specified by:
getTablein interfaceFlinkfulCatalogService
-
tableExists
- Specified by:
tableExistsin interfaceFlinkfulCatalogService
-
insertTable
public 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 - Specified by:
insertTablein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
updateTable
public void updateTable(CatalogType type, String catalog, String database, CatalogTableDTO table) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Specified by:
updateTablein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
renameTable
public 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 - Specified by:
renameTablein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableAlreadyExistExceptionorg.apache.flink.table.catalog.exceptions.TableNotExistException
-
deleteTable
public void deleteTable(CatalogType type, String catalog, String database, String table) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Specified by:
deleteTablein interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
listViews
- Specified by:
listViewsin interfaceFlinkfulCatalogService
-
getView
public Optional<CatalogTableDTO> getView(CatalogType type, String catalog, String database, String view) - Specified by:
getViewin interfaceFlinkfulCatalogService
-
viewExists
- Specified by:
viewExistsin interfaceFlinkfulCatalogService
-
insertView
public 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 - Specified by:
insertViewin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
updateView
public void updateView(CatalogType type, String catalog, String database, CatalogTableDTO view) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Specified by:
updateViewin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
renameView
public 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 - Specified by:
renameViewin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistExceptionorg.apache.flink.table.catalog.exceptions.TableAlreadyExistException
-
deleteView
public void deleteView(CatalogType type, String catalog, String database, String viewName) throws org.apache.flink.table.catalog.exceptions.TableNotExistException - Specified by:
deleteViewin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.TableNotExistException
-
listFunctions
- Specified by:
listFunctionsin interfaceFlinkfulCatalogService
-
getFunction
public Optional<CatalogFunctionDTO> getFunction(CatalogType type, String catalog, String database, String function) - Specified by:
getFunctionin interfaceFlinkfulCatalogService
-
functionExists
- Specified by:
functionExistsin interfaceFlinkfulCatalogService
-
insertFunction
public 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 - Specified by:
insertFunctionin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.DatabaseNotExistExceptionorg.apache.flink.table.catalog.exceptions.FunctionAlreadyExistException
-
updateFunction
public void updateFunction(CatalogType type, String catalog, String database, CatalogFunctionDTO function) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException - Specified by:
updateFunctionin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistException
-
deleteFunction
public void deleteFunction(CatalogType type, String catalog, String database, String functionName) throws org.apache.flink.table.catalog.exceptions.FunctionNotExistException - Specified by:
deleteFunctionin interfaceFlinkfulCatalogService- Throws:
org.apache.flink.table.catalog.exceptions.FunctionNotExistException
-