org.apache.hadoop.hive.metastore
Class DummyListener
java.lang.Object
org.apache.hadoop.hive.metastore.MetaStoreEventListener
org.apache.hadoop.hive.metastore.DummyListener
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable
public class DummyListener
- extends MetaStoreEventListener
A dummy implementation for
MetaStoreEventListener
for testing purposes.
Constructor Summary |
DummyListener(org.apache.hadoop.conf.Configuration config)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notifyList
public static final List<ListenerEvent> notifyList
DummyListener
public DummyListener(org.apache.hadoop.conf.Configuration config)
onAddPartition
public void onAddPartition(AddPartitionEvent partition)
throws MetaException
- Specified by:
onAddPartition
in class MetaStoreEventListener
- Throws:
MetaException
onCreateDatabase
public void onCreateDatabase(CreateDatabaseEvent db)
throws MetaException
- Specified by:
onCreateDatabase
in class MetaStoreEventListener
- Parameters:
db
- database event
- Throws:
MetaException
onCreateTable
public void onCreateTable(CreateTableEvent table)
throws MetaException
- Specified by:
onCreateTable
in class MetaStoreEventListener
- Parameters:
table
- table event.
- Throws:
MetaException
onDropDatabase
public void onDropDatabase(DropDatabaseEvent db)
throws MetaException
- Specified by:
onDropDatabase
in class MetaStoreEventListener
- Parameters:
db
- database event
- Throws:
MetaException
onDropPartition
public void onDropPartition(DropPartitionEvent partition)
throws MetaException
- Specified by:
onDropPartition
in class MetaStoreEventListener
- Parameters:
partition
- partition event
- Throws:
MetaException
onDropTable
public void onDropTable(DropTableEvent table)
throws MetaException
- Specified by:
onDropTable
in class MetaStoreEventListener
- Parameters:
table
- table event.
- Throws:
MetaException
onAlterTable
public void onAlterTable(AlterTableEvent event)
throws MetaException
- Specified by:
onAlterTable
in class MetaStoreEventListener
- Parameters:
event
- alter table event
- Throws:
MetaException
onAlterPartition
public void onAlterPartition(AlterPartitionEvent event)
throws MetaException
- Specified by:
onAlterPartition
in class MetaStoreEventListener
- Parameters:
event
- partition event
- Throws:
MetaException
onLoadPartitionDone
public void onLoadPartitionDone(LoadPartitionDoneEvent partEvent)
throws MetaException
- Specified by:
onLoadPartitionDone
in class MetaStoreEventListener
- Throws:
MetaException
Copyright © 2011 The Apache Software Foundation