@Test public void typicalDropTable() { cleaner.dropTable(housekeepingMetadata, hiveClient); verify(deletedMetadataReporter).reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); }
@Override @TimedTaggable("hive-table-deleted") public void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client) { client.dropTable(housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName()); deletedMetadataReporter.reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); }
HiveMetadataCleaner implements MetadataCleaner { @Override @TimedTaggable("hive-table-deleted") public void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client) { client.dropTable(housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName()); deletedMetadataReporter.reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); } }
HiveMetadataCleaner implements MetadataCleaner { @Override @TimedTaggable("hive-table-deleted") public void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client) { client.dropTable(housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName()); deletedMetadataReporter.reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); } HiveMetadataCleaner(DeletedMetadataReporter deletedMetadataReporter); }
HiveMetadataCleaner implements MetadataCleaner { @Override @TimedTaggable("hive-table-deleted") public void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client) { client.dropTable(housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName()); deletedMetadataReporter.reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); } HiveMetadataCleaner(DeletedMetadataReporter deletedMetadataReporter); @Override @TimedTaggable("hive-table-deleted") void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client); @Override @TimedTaggable("hive-partition-deleted") boolean dropPartition(HousekeepingMetadata housekeepingMetadata, CleanerClient client); @Override boolean tableExists(CleanerClient client, String databaseName, String tableName); }
HiveMetadataCleaner implements MetadataCleaner { @Override @TimedTaggable("hive-table-deleted") public void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client) { client.dropTable(housekeepingMetadata.getDatabaseName(), housekeepingMetadata.getTableName()); deletedMetadataReporter.reportTaggable(housekeepingMetadata, MetadataType.HIVE_TABLE); } HiveMetadataCleaner(DeletedMetadataReporter deletedMetadataReporter); @Override @TimedTaggable("hive-table-deleted") void dropTable(HousekeepingMetadata housekeepingMetadata, CleanerClient client); @Override @TimedTaggable("hive-partition-deleted") boolean dropPartition(HousekeepingMetadata housekeepingMetadata, CleanerClient client); @Override boolean tableExists(CleanerClient client, String databaseName, String tableName);  }