public class MetaDataExportListener extends MetaStorePreEventListener
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
MetaDataExportListener(org.apache.hadoop.conf.Configuration config)
Configure the export listener
|
Modifier and Type | Method and Description |
---|---|
void |
onEvent(PreEventContext context)
Listen for an event; if it is a DROP_TABLE event, call export_meta_data
|
getConf, setConf
public MetaDataExportListener(org.apache.hadoop.conf.Configuration config)
public void onEvent(PreEventContext context) throws MetaException, NoSuchObjectException, InvalidOperationException
onEvent
in class MetaStorePreEventListener
MetaException
NoSuchObjectException
InvalidOperationException
Copyright © 2017 The Apache Software Foundation. All rights reserved.