Class: LevelDB::Options
- Inherits:
-
Object
- Object
- LevelDB::Options
- 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
-
#block_cache_size ⇒ Object
readonly
Returns the value of attribute block_cache_size.
-
#block_restart_interval ⇒ Object
readonly
Returns the value of attribute block_restart_interval.
-
#block_size ⇒ Object
readonly
Returns the value of attribute block_size.
-
#compression ⇒ Object
readonly
Returns the value of attribute compression.
-
#create_if_missing ⇒ Object
readonly
Returns the value of attribute create_if_missing.
-
#error_if_exists ⇒ Object
readonly
Returns the value of attribute error_if_exists.
-
#max_open_files ⇒ Object
readonly
Returns the value of attribute max_open_files.
-
#paranoid_checks ⇒ Object
readonly
Returns the value of attribute paranoid_checks.
-
#write_buffer_size ⇒ Object
readonly
Returns the value of attribute write_buffer_size.
Instance Attribute Details
#block_cache_size ⇒ Object (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_interval ⇒ Object (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_size ⇒ Object (readonly)
Returns the value of attribute block_size.
95 96 97 |
# File 'lib/leveldb.rb', line 95 def block_size @block_size end |
#compression ⇒ Object (readonly)
Returns the value of attribute compression.
95 96 97 |
# File 'lib/leveldb.rb', line 95 def compression @compression end |
#create_if_missing ⇒ Object (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_exists ⇒ Object (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_files ⇒ Object (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_checks ⇒ Object (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_size ⇒ Object (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 |