Class AbstractSchemaChangeListener
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.schema.AbstractSchemaChangeListener
-
- All Implemented Interfaces:
SchemaChangeListener
public abstract class AbstractSchemaChangeListener extends Object implements SchemaChangeListener
Abstract schema change listener with no-op implementation for all calbacks.
-
-
Constructor Summary
Constructors Constructor Description AbstractSchemaChangeListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonColumnsAdded(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<QueryField> cols)Callback on columns added.voidonColumnsDropped(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<String> cols)Callback on columns dropped.voidonFunctionCreated(String schemaName, String name, boolean deterministic, Method method)Callback on function creation.voidonIndexCreated(String schemaName, String tblName, String idxName, IndexDescriptor idxDesc)Callback on index creation.voidonIndexDropped(String schemaName, String tblName, String idxName)Callback on index drop.voidonIndexRebuildFinished(String schemaName, String tblName)Callback on index rebuild finished for all indexes in the table.voidonIndexRebuildStarted(String schemaName, String tblName)Callback on index rebuild started for all indexes in the table.voidonSchemaCreated(String schemaName)Callback method.voidonSchemaDropped(String schemaName)Callback method.voidonSqlTypeCreated(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo)Callback method.voidonSqlTypeDropped(String schemaName, GridQueryTypeDescriptor typeDescriptor, boolean destroy)Callback method.voidonSystemViewCreated(String schemaName, SystemView<?> sysView)Callback on system view creation.voidonViewCreated(String schemaName, String viewName, String viewSql)Callback on user defined view creation.voidonViewDropped(String schemaName, String viewName)Callback on user defined view dropped.
-
-
-
Method Detail
-
onSchemaCreated
public void onSchemaCreated(String schemaName)
Callback method.- Specified by:
onSchemaCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.
-
onSchemaDropped
public void onSchemaDropped(String schemaName)
Callback method.- Specified by:
onSchemaDroppedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.
-
onIndexCreated
public void onIndexCreated(String schemaName, String tblName, String idxName, IndexDescriptor idxDesc)
Callback on index creation.- Specified by:
onIndexCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.tblName- Table name.idxName- Index name.idxDesc- Index descriptor.
-
onIndexDropped
public void onIndexDropped(String schemaName, String tblName, String idxName)
Callback on index drop.- Specified by:
onIndexDroppedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.tblName- Table name.idxName- Index name.
-
onIndexRebuildStarted
public void onIndexRebuildStarted(String schemaName, String tblName)
Callback on index rebuild started for all indexes in the table.- Specified by:
onIndexRebuildStartedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.tblName- Table name.
-
onIndexRebuildFinished
public void onIndexRebuildFinished(String schemaName, String tblName)
Callback on index rebuild finished for all indexes in the table.- Specified by:
onIndexRebuildFinishedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.tblName- Table name.
-
onSqlTypeCreated
public void onSqlTypeCreated(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo)
Callback method.- Specified by:
onSqlTypeCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.
-
onColumnsAdded
public void onColumnsAdded(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<QueryField> cols)
Callback on columns added.- Specified by:
onColumnsAddedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.cols- Added columns' names.
-
onColumnsDropped
public void onColumnsDropped(String schemaName, GridQueryTypeDescriptor typeDesc, GridCacheContextInfo<?,?> cacheInfo, List<String> cols)
Callback on columns dropped.- Specified by:
onColumnsDroppedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.typeDesc- Type descriptor.cacheInfo- Cache info.cols- Dropped columns' names.
-
onSqlTypeDropped
public void onSqlTypeDropped(String schemaName, GridQueryTypeDescriptor typeDescriptor, boolean destroy)
Callback method.- Specified by:
onSqlTypeDroppedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.typeDescriptor- Type descriptor.destroy- Cache destroy flag.
-
onFunctionCreated
public void onFunctionCreated(String schemaName, String name, boolean deterministic, Method method)
Callback on function creation.- Specified by:
onFunctionCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.name- Function name.deterministic- Specifies if the function is deterministic (result depends only on input parameters)method- Public static method, implementing this function.
-
onSystemViewCreated
public void onSystemViewCreated(String schemaName, SystemView<?> sysView)
Callback on system view creation.- Specified by:
onSystemViewCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.sysView- System view.
-
onViewCreated
public void onViewCreated(String schemaName, String viewName, String viewSql)
Callback on user defined view creation.- Specified by:
onViewCreatedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.viewName- View name.viewSql- View SQL.
-
onViewDropped
public void onViewDropped(String schemaName, String viewName)
Callback on user defined view dropped.- Specified by:
onViewDroppedin interfaceSchemaChangeListener- Parameters:
schemaName- Schema name.viewName- View name.
-
-