Class RocksDbPersistentSet<E>

java.lang.Object
org.apache.hadoop.ozone.om.snapshot.RocksDbPersistentSet<E>
All Implemented Interfaces:
PersistentSet<E>

public class RocksDbPersistentSet<E> extends Object implements PersistentSet<E>
Persistent set backed by RocksDB.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RocksDbPersistentSet(org.apache.hadoop.hdds.utils.db.managed.ManagedRocksDB db, org.rocksdb.ColumnFamilyHandle columnFamilyHandle, org.apache.hadoop.hdds.utils.db.CodecRegistry codecRegistry, Class<E> entryType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(E entry)
     
    org.apache.hadoop.ozone.util.ClosableIterator<E>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RocksDbPersistentSet

      public RocksDbPersistentSet(org.apache.hadoop.hdds.utils.db.managed.ManagedRocksDB db, org.rocksdb.ColumnFamilyHandle columnFamilyHandle, org.apache.hadoop.hdds.utils.db.CodecRegistry codecRegistry, Class<E> entryType)
  • Method Details

    • add

      public void add(E entry)
      Specified by:
      add in interface PersistentSet<E>
    • iterator

      public org.apache.hadoop.ozone.util.ClosableIterator<E> iterator()
      Specified by:
      iterator in interface PersistentSet<E>