Package org.apache.flink.table.catalog
Interface TemporaryOperationListener
-
@PublicEvolving public interface TemporaryOperationListenerThis interface is for aCatalogto listen on temporary object operations. When a catalog implements this interface, it'll get informed when certain operations are performed on temporary objects belonging to that catalog.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CatalogFunctiononCreateTemporaryFunction(ObjectPath functionPath, CatalogFunction function)This method is called when a temporary function is to be created in this catalog.CatalogBaseTableonCreateTemporaryTable(ObjectPath tablePath, CatalogBaseTable table)This method is called when a temporary table or view is to be created in this catalog.voidonDropTemporaryFunction(ObjectPath functionPath)This method is called when a temporary function in this catalog is to be dropped.voidonDropTemporaryTable(ObjectPath tablePath)This method is called when a temporary table or view in this catalog is to be dropped.
-
-
-
Method Detail
-
onCreateTemporaryTable
CatalogBaseTable onCreateTemporaryTable(ObjectPath tablePath, CatalogBaseTable table) throws CatalogException
This method is called when a temporary table or view is to be created in this catalog. The catalog can modify the table or view according to its needs and return the modified CatalogBaseTable instance, which will be stored for the user session.- Parameters:
tablePath- path of the table or view to be createdtable- the table definition- Returns:
- the modified table definition to be stored
- Throws:
CatalogException- in case of any runtime exception
-
onDropTemporaryTable
void onDropTemporaryTable(ObjectPath tablePath) throws CatalogException
This method is called when a temporary table or view in this catalog is to be dropped.- Parameters:
tablePath- path of the table or view to be dropped- Throws:
CatalogException- in case of any runtime exception
-
onCreateTemporaryFunction
CatalogFunction onCreateTemporaryFunction(ObjectPath functionPath, CatalogFunction function) throws CatalogException
This method is called when a temporary function is to be created in this catalog. The catalog can modify the function according to its needs and return the modified CatalogFunction instance, which will be stored for the user session.- Parameters:
functionPath- path of the function to be createdfunction- the function definition- Returns:
- the modified function definition to be stored
- Throws:
CatalogException- in case of any runtime exception
-
onDropTemporaryFunction
void onDropTemporaryFunction(ObjectPath functionPath) throws CatalogException
This method is called when a temporary function in this catalog is to be dropped.- Parameters:
functionPath- path of the function to be dropped- Throws:
CatalogException- in case of any runtime exception
-
-