Package org.apache.flink.table.catalog
Interface TemporaryOperationListener
-
@PublicEvolving public interface TemporaryOperationListener
This interface is for aCatalog
to 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 CatalogFunction
onCreateTemporaryFunction(ObjectPath functionPath, CatalogFunction function)
This method is called when a temporary function is to be created in this catalog.CatalogModel
onCreateTemporaryModel(ObjectPath modelPath, CatalogModel model)
This method is called when a temporary model is to be created in this catalog.CatalogBaseTable
onCreateTemporaryTable(ObjectPath tablePath, CatalogBaseTable table)
This method is called when a temporary table or view is to be created in this catalog.void
onDropTemporaryFunction(ObjectPath functionPath)
This method is called when a temporary function in this catalog is to be dropped.void
onDropTemporaryModel(ObjectPath modelPath)
This method is called when a temporary model in this catalog is to be dropped.void
onDropTemporaryTable(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
-
onCreateTemporaryModel
CatalogModel onCreateTemporaryModel(ObjectPath modelPath, CatalogModel model) throws CatalogException
This method is called when a temporary model is to be created in this catalog. The catalog can modify the model according to its needs and return the modified CatalogModel instance, which will be stored for the user session.- Parameters:
modelPath
- path of the model to be createdmodel
- the model definition- Returns:
- the modified model definition to be stored
- Throws:
CatalogException
- in case of any runtime exception
-
onDropTemporaryModel
void onDropTemporaryModel(ObjectPath modelPath) throws CatalogException
This method is called when a temporary model in this catalog is to be dropped.- Parameters:
modelPath
- path of the model 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
-
-