-
Notifications
You must be signed in to change notification settings - Fork 8
/
options.cr
116 lines (112 loc) · 4.36 KB
/
options.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
option_class Options do
def self.default
new.set_create_if_missing(1).set_keep_log_file_num(5)
end
option set_create_if_missing
option set_keep_log_file_num
option increase_parallelism
option optimize_for_point_lookup
option optimize_level_style_compaction
option optimize_universal_style_compaction
# option set_compaction_filter(x0 : RocksdbOptionsT, x1 : RocksdbCompactionfilterT)
# option set_compaction_filter_factory(x0 : RocksdbOptionsT, x1 : RocksdbCompactionfilterfactoryT)
# option set_comparator(x0 : RocksdbOptionsT, x1 : RocksdbComparatorT)
# option set_merge_operator(x0 : RocksdbOptionsT, x1 : RocksdbMergeoperatorT)
# option set_uint64add_merge_operator(x0 : RocksdbOptionsT)
# option set_compression_per_level(opt : RocksdbOptionsT, level_values : LibC::Int*, num_levels : LibC::SizeT)
option set_create_if_missing
option set_create_missing_column_families
option set_error_if_exists
option set_paranoid_checks
# option set_env(x0 : RocksdbOptionsT, x1 : RocksdbEnvT)
# option set_info_log(x0 : RocksdbOptionsT, x1 : RocksdbLoggerT)
option set_info_log_level
option set_write_buffer_size
option set_max_open_files
option set_max_total_wal_size
# option set_compression_options(x0 : RocksdbOptionsT, x1 : LibC::Int, x2 : LibC::Int, x3 : LibC::Int)
# option set_prefix_extractor(x0 : RocksdbOptionsT, x1 : RocksdbSlicetransformT)
option set_num_levels
option set_level0_file_num_compaction_trigger
option set_level0_slowdown_writes_trigger
option set_level0_stop_writes_trigge
option set_max_mem_compaction_level
option set_target_file_size_base
option set_target_file_size_multiplier
option set_max_bytes_for_level_base
option set_max_bytes_for_level_multiplier
option set_expanded_compaction_factor
option set_max_grandparent_overlap_factor
# option set_max_bytes_for_level_multiplier_additional(x0 : RocksdbOptionsT, level_values : LibC::Int*, num_levels : LibC::SizeT)
option enable_statistics
# option statistics_get_string(opt : RocksdbOptionsT) : LibC::Char*
option set_max_write_buffer_number
option set_min_write_buffer_number_to_merge
option set_max_write_buffer_number_to_maintain
option set_max_background_compactions
option set_max_background_flushes
option set_max_log_file_size
option set_log_file_time_to_roll
option set_keep_log_file_num
option set_soft_rate_limit
option set_hard_rate_limit
option set_rate_limit_delay_max_milliseconds
option set_max_manifest_file_size
option set_table_cache_numshardbits
option set_table_cache_remove_scan_count_limit
option set_arena_block_size
option set_use_fsync
# option set_db_log_dir(x0 : RocksdbOptionsT, x1 : LibC::Char*)
# option set_wal_dir(x0 : RocksdbOptionsT, x1 : LibC::Char*)
option set_wal_ttl_seconds
option set_wal_size_limit_mb
option set_manifest_preallocation_size
option set_purge_redundant_kvs_while_flush
option set_allow_os_buffer
option set_allow_mmap_reads
option set_allow_mmap_writes
option set_is_fd_close_on_exec
option set_skip_log_error_on_recovery
option set_stats_dump_period_sec
option set_advise_random_on_open
option set_access_hint_on_compaction_start
option set_use_adaptive_mutex
option set_bytes_per_sync
option set_verify_checksums_in_compaction
option set_filter_deletes
option set_max_sequential_skip_in_iterations
option set_disable_data_sync
option set_disable_auto_compactions
option set_delete_obsolete_files_period_micros
option set_source_compaction_factor
option prepare_for_bulk_load
option set_memtable_vector_rep
option set_hash_skip_list_rep
option set_hash_link_list_rep
option set_plain_table_factory
option set_min_level_to_compress
option set_memtable_prefix_bloom_bits
option set_memtable_prefix_bloom_probes
option set_max_successive_merges
option set_min_partial_merge_operands
option set_bloom_locality
option set_inplace_update_support
option set_inplace_update_num_locks
end
option_class ReadOptions do
option set_verify_checksums
option set_fill_cache
# option set_snapshot(x0 : RocksdbReadoptionsT, x1 : RocksdbSnapshotT)
# option set_iterate_upper_bound(x0 : RocksdbReadoptionsT, key : LibC::Char*, keylen : LibC::SizeT)
option set_read_tier
option set_tailing
end
option_class WriteOptions do
option set_sync
option disable_wal
end
option_class FlushOptions do
# option set_sync
option set_wait
option set_allow_write_stall
end