Class ReclaimableKeyFilter

java.lang.Object
org.apache.hadoop.ozone.om.snapshot.filter.ReclaimableFilter<org.apache.hadoop.ozone.om.helpers.OmKeyInfo>
org.apache.hadoop.ozone.om.snapshot.filter.ReclaimableKeyFilter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.ratis.util.function.CheckedFunction<org.apache.hadoop.hdds.utils.db.Table.KeyValue<String,org.apache.hadoop.ozone.om.helpers.OmKeyInfo>,Boolean,IOException>

public class ReclaimableKeyFilter extends ReclaimableFilter<org.apache.hadoop.ozone.om.helpers.OmKeyInfo>
Filter to return deleted keys which are reclaimable based on their presence in previous snapshot in the snapshot chain.
  • Constructor Details

    • ReclaimableKeyFilter

      public ReclaimableKeyFilter(OzoneManager ozoneManager, OmSnapshotManager omSnapshotManager, SnapshotChainManager snapshotChainManager, org.apache.hadoop.ozone.om.helpers.SnapshotInfo currentSnapshotInfo, KeyManager keyManager, org.apache.hadoop.ozone.om.lock.IOzoneManagerLock lock)
      Parameters:
      currentSnapshotInfo - : If null the deleted keys in AOS needs to be processed, hence the latest snapshot in the snapshot chain corresponding to bucket key needs to be processed.
      keyManager - : keyManager corresponding to snapshot or AOS.
      lock - : Lock for Active OM.
  • Method Details