Package org.rocksdb

Class VectorMemTableConfig


  • public class VectorMemTableConfig
    extends MemTableConfig
    The config for vector memtable representation.
    • Constructor Summary

      Constructors 
      Constructor Description
      VectorMemTableConfig()
      VectorMemTableConfig constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      int reservedSize()
      Returns the initial size of the vector used by the memtable created based on this config.
      VectorMemTableConfig setReservedSize​(int size)
      Set the initial size of the vector that will be used by the memtable created based on this config.
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • VectorMemTableConfig

        public VectorMemTableConfig()
        VectorMemTableConfig constructor
    • Method Detail

      • setReservedSize

        public VectorMemTableConfig setReservedSize​(int size)
        Set the initial size of the vector that will be used by the memtable created based on this config.
        Parameters:
        size - the initial size of the vector.
        Returns:
        the reference to the current config.
      • reservedSize

        public int reservedSize()
        Returns the initial size of the vector used by the memtable created based on this config.
        Returns:
        the initial size of the vector.
      • 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)