public class ExpirationHandler extends Object
TableProperties.METADATA_DELETE_AFTER_COMMIT_ENABLED set to true.
Number of metadata files to be retained is configured using TableProperties.METADATA_PREVIOUS_VERSIONS_MAX.
Snapshots and data expiration should be called manually to align with metadata expiration process,
the same table properties are used to determine if expiration is needed and which number
of snapshots should be retained.| Constructor and Description |
|---|
ExpirationHandler(org.apache.iceberg.Table table) |
| Modifier and Type | Method and Description |
|---|---|
void |
expire()
Expires snapshots and related data if needed
based on the given table properties values.
|
void |
expireQuietly()
Expires snapshots and related data and ignores possible exceptions.
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.