Class DefaultConfigurableOptionsFactory

    • Constructor Detail

      • DefaultConfigurableOptionsFactory

        public DefaultConfigurableOptionsFactory()
        Deprecated.
    • Method Detail

      • createDBOptions

        public org.rocksdb.DBOptions createDBOptions​(org.rocksdb.DBOptions currentOptions,
                                                     Collection<AutoCloseable> handlesToClose)
        Deprecated.
        Description copied from interface: RocksDBOptionsFactory
        This method should set the additional options on top of the current options object. The current options object may contain pre-defined options based on flags that have been configured on the state backend.

        It is important to set the options on the current object and return the result from the setter methods, otherwise the pre-defined options may get lost.

        Specified by:
        createDBOptions in interface RocksDBOptionsFactory
        Parameters:
        currentOptions - The options object with the pre-defined options.
        handlesToClose - The collection to register newly created RocksObjects.
        Returns:
        The options object on which the additional options are set.
      • createColumnOptions

        public org.rocksdb.ColumnFamilyOptions createColumnOptions​(org.rocksdb.ColumnFamilyOptions currentOptions,
                                                                   Collection<AutoCloseable> handlesToClose)
        Deprecated.
        Description copied from interface: RocksDBOptionsFactory
        This method should set the additional options on top of the current options object. The current options object may contain pre-defined options based on flags that have been configured on the state backend.

        It is important to set the options on the current object and return the result from the setter methods, otherwise the pre-defined options may get lost.

        Specified by:
        createColumnOptions in interface RocksDBOptionsFactory
        Parameters:
        currentOptions - The options object with the pre-defined options.
        handlesToClose - The collection to register newly created RocksObjects.
        Returns:
        The options object on which the additional options are set.
      • getConfiguredOptions

        public Map<String,​String> getConfiguredOptions()
        Deprecated.
      • setLogDir

        public DefaultConfigurableOptionsFactory setLogDir​(String logDir)
        Deprecated.
        The directory for RocksDB's logging files.
        Parameters:
        logDir - If empty, log files will be in the same directory as data files
        If non-empty, this directory will be used and the data directory's absolute path will be used as the prefix of the log file name.
        Returns:
        this options factory
      • setMaxLogFileSize

        public DefaultConfigurableOptionsFactory setMaxLogFileSize​(String maxLogFileSize)
        Deprecated.
        The maximum size of RocksDB's file used for logging.

        If the log files becomes larger than this, a new file will be created. If 0, all logs will be written to one log file.

        Parameters:
        maxLogFileSize - max file size limit
        Returns:
        this options factory
      • setLogFileNum

        public DefaultConfigurableOptionsFactory setLogFileNum​(int logFileNum)
        Deprecated.
        The maximum number of files RocksDB should keep for logging.
        Parameters:
        logFileNum - number of files to keep
        Returns:
        this options factory