Package org.rocksdb

Class SkipListMemTableConfig

java.lang.Object
org.rocksdb.MemTableConfig
org.rocksdb.SkipListMemTableConfig

public class SkipListMemTableConfig extends MemTableConfig
The config for skip-list memtable representation.
  • Field Details

  • Constructor Details

    • SkipListMemTableConfig

      public SkipListMemTableConfig()
      SkipListMemTableConfig constructor
  • Method Details

    • setLookahead

      public SkipListMemTableConfig setLookahead(long lookahead)
      Sets lookahead for SkipList
      Parameters:
      lookahead - If non-zero, each iterator's seek operation will start the search from the previously visited record (doing at most 'lookahead' steps). This is an optimization for the access pattern including many seeks with consecutive keys.
      Returns:
      the current instance of SkipListMemTableConfig
    • lookahead

      public long lookahead()
      Returns the currently set lookahead value.
      Returns:
      lookahead value
    • newMemTableFactoryHandle

      protected long newMemTableFactoryHandle()
      Description copied from class: MemTableConfig
      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.
      Specified by:
      newMemTableFactoryHandle in class MemTableConfig
      Returns:
      native handle address to native memory table instance.
      See Also: