public class MetadataCleanup
extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
cleanupExpiredLogs(Engine engine,
Clock clock,
Path tablePath,
long retentionMillis)
Delete the Delta log files (delta and checkpoint files) that are expired according to the table
metadata retention settings.
|
public static long cleanupExpiredLogs(Engine engine, Clock clock, Path tablePath, long retentionMillis) throws java.io.IOException
Here is algorithm:
engine - Engine instance to delete the expired log filesclock - Clock instance to get the current time. Useful in testing to mock the
current time.tablePath - Table locationretentionMillis - Log file retention period in millisecondsjava.io.IOException - if an error occurs while deleting the log files