public class HMSMetricsListener extends MetaStoreEventListener
| Constructor and Description |
|---|
HMSMetricsListener(org.apache.hadoop.conf.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
onAddPartition(AddPartitionEvent partitionEvent) |
void |
onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent,
Connection dbConn,
SQLGenerator sqlGenerator)
This will be called to alloc a new write id.
|
void |
onCreateDatabase(CreateDatabaseEvent dbEvent) |
void |
onCreateTable(CreateTableEvent tableEvent) |
void |
onDropDatabase(DropDatabaseEvent dbEvent) |
void |
onDropPartition(DropPartitionEvent partitionEvent) |
void |
onDropTable(DropTableEvent tableEvent) |
doesAddEventsToNotificationLogTable, getConf, onAbortTxn, onAcidWrite, onAddCheckConstraint, onAddDefaultConstraint, onAddForeignKey, onAddNotNullConstraint, onAddPrimaryKey, onAddSchemaVersion, onAddUniqueConstraint, onAlterCatalog, onAlterDatabase, onAlterDataConnector, onAlterISchema, onAlterPartition, onAlterSchemaVersion, onAlterTable, onBatchAcidWrite, onCommitCompaction, onCommitTxn, onConfigChange, onCreateCatalog, onCreateDataConnector, onCreateFunction, onCreateISchema, onDeletePartitionColumnStat, onDeleteTableColumnStat, onDropCatalog, onDropConstraint, onDropDataConnector, onDropFunction, onDropISchema, onDropSchemaVersion, onInsert, onLoadPartitionDone, onOpenTxn, onReload, onUpdatePartitionColumnStat, onUpdatePartitionColumnStatInBatch, onUpdateTableColumnStat, setConfpublic HMSMetricsListener(org.apache.hadoop.conf.Configuration config)
public void onCreateDatabase(CreateDatabaseEvent dbEvent) throws MetaException
onCreateDatabase in class MetaStoreEventListenerdbEvent - database eventMetaExceptionpublic void onDropDatabase(DropDatabaseEvent dbEvent) throws MetaException
onDropDatabase in class MetaStoreEventListenerdbEvent - database eventMetaExceptionpublic void onCreateTable(CreateTableEvent tableEvent) throws MetaException
onCreateTable in class MetaStoreEventListenertableEvent - table event.MetaExceptionpublic void onDropTable(DropTableEvent tableEvent) throws MetaException
onDropTable in class MetaStoreEventListenertableEvent - table event.MetaExceptionpublic void onDropPartition(DropPartitionEvent partitionEvent) throws MetaException
onDropPartition in class MetaStoreEventListenerpartitionEvent - partition eventMetaExceptionpublic void onAddPartition(AddPartitionEvent partitionEvent) throws MetaException
onAddPartition in class MetaStoreEventListenerpartitionEvent - add partition eventMetaExceptionpublic void onAllocWriteId(AllocWriteIdEvent allocWriteIdEvent, Connection dbConn, SQLGenerator sqlGenerator) throws MetaException
MetaStoreEventListeneronAllocWriteId in class MetaStoreEventListenerallocWriteIdEvent - event to be processeddbConn - jdbc connection to remote meta store db.sqlGenerator - helper class to generate db specific sql string.MetaExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.