public class KeepByTimeStrategy extends PartitionTTLStrategy
| Modifier and Type | Field and Description |
|---|---|
protected long |
ttlInMilis |
hoodieTable, instantTime, writeConfig| Constructor and Description |
|---|
KeepByTimeStrategy(HoodieTable hoodieTable,
String instantTime) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getExpiredPartitionPaths()
Get expired partition paths for a specific partition ttl strategy.
|
protected List<String> |
getExpiredPartitionsForTimeStrategy(List<String> partitionsForTTLManagement) |
protected boolean |
isPartitionExpired(String referenceTime)
Determines if a partition's reference time has exceeded its time-to-live (TTL).
|
getPartitionPathsForTTLpublic KeepByTimeStrategy(HoodieTable hoodieTable, String instantTime)
public List<String> getExpiredPartitionPaths()
PartitionTTLStrategygetExpiredPartitionPaths in class PartitionTTLStrategyprotected List<String> getExpiredPartitionsForTimeStrategy(List<String> partitionsForTTLManagement)
protected boolean isPartitionExpired(String referenceTime)
This method checks if the current time has passed the TTL threshold based on a reference time, which could be the creation time or the last commit time of the partition.
referenceTime - last commit time or creation time for partitionCopyright © 2024 The Apache Software Foundation. All rights reserved.