Package org.rocksdb

Class SkipListMemTableConfig


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

      Fields 
      Modifier and Type Field Description
      static long DEFAULT_LOOKAHEAD  
    • Constructor Summary

      Constructors 
      Constructor Description
      SkipListMemTableConfig()
      SkipListMemTableConfig constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long lookahead()
      Returns the currently set lookahead value.
      protected 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.
      SkipListMemTableConfig setLookahead​(long lookahead)
      Sets lookahead for SkipList
      • Methods inherited from class java.lang.Object

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

      • SkipListMemTableConfig

        public SkipListMemTableConfig()
        SkipListMemTableConfig constructor
    • Method Detail

      • 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:
        Options.setMemTableConfig(MemTableConfig)