Alexander Regueiro
57d4669d97
Added explicit `CompareFn` type for comparator function.
...
Changed return type of comparator function from `i32` to `std::cmp::Ordering`.
8 years ago
Tyler Neely
121ed9a993
formatting
8 years ago
Alexander Regueiro
ffefbd0907
Performed lots of clean-up on code.
8 years ago
Karl Hobley
3975276ee0
Examples/doctests for Options methods
8 years ago
Karl Hobley
4596aeda5f
Convert test_set_max_manifest_file_size into a doctest
8 years ago
Karl Hobley
dd7423ef9f
Added deprecated add_merge_operator and add_comparitor methods
8 years ago
Karl Hobley
f8e96a02df
Improve naming of some of the new Options methods
...
None of these methods have been in a past released version so I don't think we should worry about backwards compatibility.
Changes as follows:
- Renamed ``compression`` to ``set_compression_type``. I think this is a much clearer name
- Renamed ``add_merge_operator`` to ``set_merge_operator`` and ``add_comparator`` to ``set_comparator``. Both of these methods replace the entire value of their respective option so "add" is the wrong term to use here.
- Renamed ``set_block_cache_size_mb`` to ``rocksdb_options_optimize_for_point_lookup``. To match RocksDB's API
8 years ago
Karl Hobley
cbf98b6b23
Remove Options.set_filter_deletes
...
Fixes #79
Deprecated (and removed) as of RocksDB 4.10
7b79238b65
8 years ago
Karl Hobley
c0e0331d0c
Add docstrings from RocksDB comments
...
All the docstrings were taken from 869ae5d786/include/rocksdb/options.h
8 years ago
siddontang
edb0859029
support get statistics
8 years ago
zhangjinpeng1987
42c5bb92dc
set num levels
8 years ago
zhangjinpeng1987
fa038809e1
enable statistics
8 years ago
zhangjinpeng1987
f542987ba7
wal recovery mode
8 years ago
Dylan Wen
ad09a5fbe1
add set_max_manifest_file_size for Options
8 years ago
zhangjinpeng1987
c884ee38b7
add set_level_zero_file_num_compaction_trigger api
8 years ago
zhangjinpeng1987
5454956385
add set_level0_compaction_trigger api
8 years ago
zhangjinpeng1987
c9e104a4e5
add filter policy interface && add set_cache_index_and_filter_blocks
8 years ago
zhangjinpeng1987
b9bcc0900e
add compression_per_level options
8 years ago
jinpeng zhang
a783093048
add report_gb_io_stats option
8 years ago
ngaut
0dfdc06ddf
*: add an option to disable write-ahead-log.
8 years ago
Jay Lee
f781adc84b
add allow os buffer conf
8 years ago
Jay Lee
f92f15f111
add lru cache conf
8 years ago
Jay Lee
e2c0877388
option: add max_bytes_for_level_base option
8 years ago
Jay Lee
85bc98462e
options: add compression option
8 years ago
Tyler Neely
aec7db81f2
Clean up code a bit, make clippy happier, use proper types.
9 years ago
Tyler Neely
8f445220bb
fix some clippy warnings
9 years ago
Tyler Neely
c005eb9c22
Bump libc crate to 0.2.10, fix the improper use of u64 where usize should have been used in some places.
9 years ago
Tyler Neely
740f3735d0
touchups to make arkpar's backport work
9 years ago
arkpar
cc6e143318
Changed ffi types to pointer for i686 compatibility
9 years ago
Ceri Storey
45d6436f0e
Format with rustfmt.
9 years ago
Ceri Storey
c1c067f1f4
Start adding WriteOptions.
9 years ago
siddontang
e728a14a97
src: format codes.
9 years ago
Tyler Neely
edf9421ff4
rustfmt
9 years ago
Tyler Neely
a09580fec7
small refactor to get CF's working on batches at the cost of OOB CF handling
9 years ago
Tyler Neely
269c5712a6
Run rustfmt on the code.
10 years ago
David Greenberg
909bc8819c
Improve safety of borrow checker with ffi objects
10 years ago
Tyler Neely
3bd37709fe
Added initial comparator code.
10 years ago
Tyler Neely
95c21ea171
get some basics working, still need to fix merge operators for post-1.0
10 years ago
Andrey Davydov
6948c2d77b
[code cosmetics]
...
(*) remove using of some deprecated functions
(*) reduce size of unsafe blocks
10 years ago
Tyler Neely
534266f09a
split some code into smaller files
10 years ago