Class: LevelDB::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/leveldb.rb

Constant Summary collapse

DEFAULT_MAX_OPEN_FILES =
1000
DEFAULT_WRITE_BUFFER_SIZE =
4 * 1024 * 1024
DEFAULT_BLOCK_SIZE =
4 * 1024
DEFAULT_BLOCK_RESTART_INTERVAL =
16
DEFAULT_COMPRESSION =
LevelDB::CompressionType::SnappyCompression

Instance Attribute Summary collapse

Instance Attribute Details

#block_cache_sizeObject (readonly)

Returns the value of attribute block_cache_size.



95
96
97
# File 'lib/leveldb.rb', line 95

def block_cache_size
  @block_cache_size
end

#block_restart_intervalObject (readonly)

Returns the value of attribute block_restart_interval.



95
96
97
# File 'lib/leveldb.rb', line 95

def block_restart_interval
  @block_restart_interval
end

#block_sizeObject (readonly)

Returns the value of attribute block_size.



95
96
97
# File 'lib/leveldb.rb', line 95

def block_size
  @block_size
end

#compressionObject (readonly)

Returns the value of attribute compression.



95
96
97
# File 'lib/leveldb.rb', line 95

def compression
  @compression
end

#create_if_missingObject (readonly)

Returns the value of attribute create_if_missing.



95
96
97
# File 'lib/leveldb.rb', line 95

def create_if_missing
  @create_if_missing
end

#error_if_existsObject (readonly)

Returns the value of attribute error_if_exists.



95
96
97
# File 'lib/leveldb.rb', line 95

def error_if_exists
  @error_if_exists
end

#max_open_filesObject (readonly)

Returns the value of attribute max_open_files.



95
96
97
# File 'lib/leveldb.rb', line 95

def max_open_files
  @max_open_files
end

#paranoid_checksObject (readonly)

Returns the value of attribute paranoid_checks.



95
96
97
# File 'lib/leveldb.rb', line 95

def paranoid_checks
  @paranoid_checks
end

#write_buffer_sizeObject (readonly)

Returns the value of attribute write_buffer_size.



95
96
97
# File 'lib/leveldb.rb', line 95

def write_buffer_size
  @write_buffer_size
end