Package org.rocksdb

Class MemTableConfig

  • Direct Known Subclasses:
    HashLinkedListMemTableConfig, HashSkipListMemTableConfig, SkipListMemTableConfig, VectorMemTableConfig

    public abstract class MemTableConfig
    extends java.lang.Object
    MemTableConfig is used to config the internal mem-table of a RocksDB. It is required for each memtable to have one such sub-class to allow Java developers to use it. To make a RocksDB to use a specific MemTable format, its associated MemTableConfig should be properly set and passed into Options via Options.setMemTableFactory() and open the db using that Options.
    See Also:
    Options
    • Constructor Summary

      Constructors 
      Constructor Description
      MemTableConfig()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract long newMemTableFactoryHandle()
      This function should only be called by Options.setMemTableConfig(), which will create a c++ shared-pointer to the c++ MemTableRepFactory that associated with the Java MemTableConfig.
      • Methods inherited from class java.lang.Object

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

      • MemTableConfig

        public MemTableConfig()
    • Method Detail

      • newMemTableFactoryHandle

        protected abstract long newMemTableFactoryHandle()
        This function should only be called by Options.setMemTableConfig(), which will create a c++ shared-pointer to the c++ MemTableRepFactory that associated with the Java MemTableConfig.
        Returns:
        native handle address to native memory table instance.
        See Also:
        Options.setMemTableConfig(MemTableConfig)