#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_pinnable_slice_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_column_family_descriptor_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_column_family_handle_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_db_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_cfoptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_dbpath_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_dboptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_readoptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_writeoptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_flushoptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_fifo_compaction_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_compaction_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_compactrange_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_ingestexternalfile_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_status_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_ratelimiter_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_envoptions_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_logger_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_env_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_snapshot_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_iterator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_writebatch_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_raw_writebatch_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_writebatch_handler_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_block_based_table_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_cuckoo_table_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_plain_table_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_raw_filterpolicy_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_cache_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_persistent_cache_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_associative_mergeoperator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_mergeoperator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_comparator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_c_comparator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_sst_file_writer_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_external_sst_file_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_dump_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_undump_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_iostats_context_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_perf_context_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_statistics_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_histogram_data_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_livefiles_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_column_family_metadata_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_universal_compaction_options_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_logfiles_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_transaction_log_iterator_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_props_collection_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_props_collection_iter_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_props_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_user_collected_props_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_user_collected_props_iter_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_props_collector_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_props_collector_factory_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_write_buffer_manager_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_key_version_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_key_version_collection_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_event_listener_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_flush_job_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_file_deletion_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_compaction_job_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_compaction_job_stats_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_file_creation_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_table_file_creation_brief_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_mem_table_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_external_file_ingestion_info_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct rocks_thread_status_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct cxx_string_vector_t {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct cxx_string_t {
_unused: [u8; 0],
}
extern "C" {
pub fn rocks_status_destroy(s: *mut rocks_status_t);
}
extern "C" {
pub fn rocks_status_code(s: *mut rocks_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_status_subcode(s: *mut rocks_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_status_severity(s: *mut rocks_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_status_get_state(s: *mut rocks_status_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_pinnable_slice_create() -> *mut rocks_pinnable_slice_t;
}
extern "C" {
pub fn rocks_pinnable_slice_destroy(s: *mut rocks_pinnable_slice_t);
}
extern "C" {
pub fn rocks_pinnable_slice_data(s: *mut rocks_pinnable_slice_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_pinnable_slice_size(s: *mut rocks_pinnable_slice_t) -> usize;
}
extern "C" {
pub fn rocks_column_family_descriptor_get_name(
desc: *const rocks_column_family_descriptor_t,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_descriptor_get_cfoptions(
desc: *mut rocks_column_family_descriptor_t,
) -> *mut rocks_cfoptions_t;
}
extern "C" {
pub fn rocks_options_create() -> *mut rocks_options_t;
}
extern "C" {
pub fn rocks_options_destroy(options: *mut rocks_options_t);
}
extern "C" {
pub fn rocks_dboptions_create() -> *mut rocks_dboptions_t;
}
extern "C" {
pub fn rocks_dboptions_destroy(options: *mut rocks_dboptions_t);
}
extern "C" {
pub fn rocks_cfoptions_create() -> *mut rocks_cfoptions_t;
}
extern "C" {
pub fn rocks_cfoptions_destroy(options: *mut rocks_cfoptions_t);
}
extern "C" {
pub fn rocks_options_create_from_db_cf_options(
dbopt: *mut rocks_dboptions_t,
cfopt: *mut rocks_cfoptions_t,
) -> *mut rocks_options_t;
}
extern "C" {
pub fn rocks_dboptions_create_from_options(options: *mut rocks_options_t) -> *mut rocks_dboptions_t;
}
extern "C" {
pub fn rocks_cfoptions_create_from_options(options: *mut rocks_options_t) -> *mut rocks_cfoptions_t;
}
extern "C" {
pub fn rocks_cfoptions_optimize_for_small_db(opt: *mut rocks_cfoptions_t);
}
extern "C" {
pub fn rocks_cfoptions_optimize_for_point_lookup(opt: *mut rocks_cfoptions_t, block_cache_size_mb: u64);
}
extern "C" {
pub fn rocks_cfoptions_optimize_level_style_compaction(opt: *mut rocks_cfoptions_t, memtable_memory_budget: u64);
}
extern "C" {
pub fn rocks_cfoptions_optimize_universal_style_compaction(
opt: *mut rocks_cfoptions_t,
memtable_memory_budget: u64,
);
}
extern "C" {
pub fn rocks_cfoptions_set_merge_operator_by_assoc_op_trait(
opt: *mut rocks_cfoptions_t,
op_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_merge_operator_by_merge_op_trait(
opt: *mut rocks_cfoptions_t,
op_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_comparator_by_trait(
opt: *mut rocks_cfoptions_t,
cp_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_compaction_filter_by_trait(
opt: *mut rocks_cfoptions_t,
filter_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_bitwise_comparator(opt: *mut rocks_cfoptions_t, reversed: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_write_buffer_size(opt: *mut rocks_cfoptions_t, s: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_compression(opt: *mut rocks_cfoptions_t, t: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_bottommost_compression(opt: *mut rocks_cfoptions_t, t: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_compression_options(
opt: *mut rocks_cfoptions_t,
w_bits: ::std::os::raw::c_int,
level: ::std::os::raw::c_int,
strategy: ::std::os::raw::c_int,
max_dict_bytes: u32,
);
}
extern "C" {
pub fn rocks_cfoptions_set_level0_file_num_compaction_trigger(
opt: *mut rocks_cfoptions_t,
n: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_cfoptions_set_prefix_extractor_by_trait(
opt: *mut rocks_cfoptions_t,
trans_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_prefix_extractor_fixed_prefix(opt: *mut rocks_cfoptions_t, prefix_len: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_prefix_extractor_capped_prefix(opt: *mut rocks_cfoptions_t, cap_len: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_prefix_extractor_noop(opt: *mut rocks_cfoptions_t);
}
extern "C" {
pub fn rocks_cfoptions_set_max_bytes_for_level_base(opt: *mut rocks_cfoptions_t, n: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_disable_auto_compactions(opt: *mut rocks_cfoptions_t, disable: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_block_based_table_factory(
opt: *mut rocks_cfoptions_t,
table_options: *mut rocks_block_based_table_options_t,
);
}
extern "C" {
pub fn rocks_cfoptions_set_cuckoo_table_factory(
opt: *mut rocks_cfoptions_t,
table_options: *mut rocks_cuckoo_table_options_t,
);
}
extern "C" {
pub fn rocks_cfoptions_set_plain_table_factory(
opt: *mut rocks_cfoptions_t,
table_options: *mut rocks_plain_table_options_t,
);
}
extern "C" {
pub fn rocks_cfoptions_set_max_write_buffer_number(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_min_write_buffer_number_to_merge(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_max_write_buffer_number_to_maintain(
opt: *mut rocks_cfoptions_t,
n: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_cfoptions_set_inplace_update_support(opt: *mut rocks_cfoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_inplace_update_num_locks(opt: *mut rocks_cfoptions_t, v: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_prefix_bloom_size_ratio(opt: *mut rocks_cfoptions_t, v: f64);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_huge_page_size(opt: *mut rocks_cfoptions_t, v: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_insert_with_hint_prefix_extractor_by_trait(
opt: *mut rocks_cfoptions_t,
trans_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_insert_with_hint_prefix_extractor_fixed_prefix(
opt: *mut rocks_cfoptions_t,
prefix_len: usize,
);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_insert_with_hint_prefix_extractor_capped_prefix(
opt: *mut rocks_cfoptions_t,
cap_len: usize,
);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_insert_with_hint_prefix_extractor_noop(opt: *mut rocks_cfoptions_t);
}
extern "C" {
pub fn rocks_cfoptions_set_bloom_locality(opt: *mut rocks_cfoptions_t, v: u32);
}
extern "C" {
pub fn rocks_cfoptions_set_arena_block_size(opt: *mut rocks_cfoptions_t, v: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_compression_per_level(
opt: *mut rocks_cfoptions_t,
level_values: *const ::std::os::raw::c_int,
num_levels: usize,
);
}
extern "C" {
pub fn rocks_cfoptions_set_num_levels(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_level0_slowdown_writes_trigger(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_level0_stop_writes_trigger(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_target_file_size_base(opt: *mut rocks_cfoptions_t, n: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_target_file_size_multiplier(opt: *mut rocks_cfoptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_level_compaction_dynamic_level_bytes(
opt: *mut rocks_cfoptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_cfoptions_set_max_bytes_for_level_multiplier(opt: *mut rocks_cfoptions_t, n: f64);
}
extern "C" {
pub fn rocks_cfoptions_set_max_bytes_for_level_multiplier_additional(
opt: *mut rocks_cfoptions_t,
level_values: *const ::std::os::raw::c_int,
num_levels: usize,
);
}
extern "C" {
pub fn rocks_cfoptions_set_max_compaction_bytes(opt: *mut rocks_cfoptions_t, n: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_soft_pending_compaction_bytes_limit(opt: *mut rocks_cfoptions_t, v: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_hard_pending_compaction_bytes_limit(opt: *mut rocks_cfoptions_t, v: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_compaction_style(opt: *mut rocks_cfoptions_t, style: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_compaction_pri(opt: *mut rocks_cfoptions_t, pri: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cfoptions_set_universal_compaction_options(
opt: *mut rocks_cfoptions_t,
uco: *mut rocks_universal_compaction_options_t,
);
}
extern "C" {
pub fn rocks_cfoptions_set_fifo_compaction_options(
opt: *mut rocks_cfoptions_t,
fifo: *mut rocks_fifo_compaction_options_t,
);
}
extern "C" {
pub fn rocks_cfoptions_set_max_sequential_skip_in_iterations(opt: *mut rocks_cfoptions_t, v: u64);
}
extern "C" {
pub fn rocks_cfoptions_set_memtable_vector_rep(opt: *mut rocks_cfoptions_t, count: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_hash_skip_list_rep(
opt: *mut rocks_cfoptions_t,
bucket_count: usize,
skiplist_height: i32,
skiplist_branching_factor: i32,
);
}
extern "C" {
pub fn rocks_cfoptions_set_hash_link_list_rep(opt: *mut rocks_cfoptions_t, bucket_count: usize);
}
extern "C" {
pub fn rocks_cfoptions_add_table_properties_collector_factories_by_trait(
opt: *mut rocks_cfoptions_t,
factory_trait_obj: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_cfoptions_set_max_successive_merges(opt: *mut rocks_cfoptions_t, v: usize);
}
extern "C" {
pub fn rocks_cfoptions_set_optimize_filters_for_hits(opt: *mut rocks_cfoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_paranoid_file_checks(opt: *mut rocks_cfoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_force_consistency_checks(opt: *mut rocks_cfoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_cfoptions_set_report_bg_io_stats(opt: *mut rocks_cfoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_optimize_for_small_db(opt: *mut rocks_dboptions_t);
}
extern "C" {
pub fn rocks_dboptions_increase_parallelism(opt: *mut rocks_dboptions_t, total_threads: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_create_if_missing(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_create_missing_column_families(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_error_if_exists(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_paranoid_checks(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_env(opt: *mut rocks_dboptions_t, env: *mut rocks_env_t);
}
extern "C" {
pub fn rocks_dboptions_set_ratelimiter(opt: *mut rocks_dboptions_t, limiter: *mut rocks_ratelimiter_t);
}
extern "C" {
pub fn rocks_dboptions_set_info_log(opt: *mut rocks_dboptions_t, l: *mut rocks_logger_t);
}
extern "C" {
pub fn rocks_dboptions_set_info_log_level(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_max_open_files(opt: *mut rocks_dboptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_max_file_opening_threads(opt: *mut rocks_dboptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_max_total_wal_size(opt: *mut rocks_dboptions_t, n: u64);
}
extern "C" {
pub fn rocks_dboptions_set_statistics(opt: *mut rocks_dboptions_t, stat: *mut rocks_statistics_t);
}
extern "C" {
pub fn rocks_dboptions_set_use_fsync(opt: *mut rocks_dboptions_t, use_fsync: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_db_paths(
opt: *mut rocks_dboptions_t,
paths: *const *const ::std::os::raw::c_char,
path_lens: *const usize,
target_sizes: *const u64,
size: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_dboptions_set_db_log_dir(
opt: *mut rocks_dboptions_t,
db_log_dir: *const ::std::os::raw::c_char,
len: usize,
);
}
extern "C" {
pub fn rocks_dboptions_set_wal_dir(opt: *mut rocks_dboptions_t, v: *const ::std::os::raw::c_char, len: usize);
}
extern "C" {
pub fn rocks_dboptions_set_delete_obsolete_files_period_micros(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_max_background_jobs(opt: *mut rocks_dboptions_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_max_subcompactions(opt: *mut rocks_dboptions_t, n: u32);
}
extern "C" {
pub fn rocks_dboptions_set_max_log_file_size(opt: *mut rocks_dboptions_t, v: usize);
}
extern "C" {
pub fn rocks_dboptions_set_log_file_time_to_roll(opt: *mut rocks_dboptions_t, v: usize);
}
extern "C" {
pub fn rocks_dboptions_set_keep_log_file_num(opt: *mut rocks_dboptions_t, v: usize);
}
extern "C" {
pub fn rocks_dboptions_set_recycle_log_file_num(opt: *mut rocks_dboptions_t, v: usize);
}
extern "C" {
pub fn rocks_dboptions_set_max_manifest_file_size(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_table_cache_numshardbits(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_wal_ttl_seconds(opt: *mut rocks_dboptions_t, ttl: u64);
}
extern "C" {
pub fn rocks_dboptions_set_wal_size_limit_mb(opt: *mut rocks_dboptions_t, limit: u64);
}
extern "C" {
pub fn rocks_dboptions_set_manifest_preallocation_size(opt: *mut rocks_dboptions_t, v: usize);
}
extern "C" {
pub fn rocks_dboptions_set_allow_mmap_reads(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_allow_mmap_writes(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_use_direct_reads(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_use_direct_io_for_flush_and_compaction(
opt: *mut rocks_dboptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_dboptions_set_allow_fallocate(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_is_fd_close_on_exec(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_stats_dump_period_sec(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uint);
}
extern "C" {
pub fn rocks_dboptions_set_advise_random_on_open(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_db_write_buffer_size(opt: *mut rocks_dboptions_t, s: usize);
}
extern "C" {
pub fn rocks_dboptions_set_write_buffer_manager(
opt: *mut rocks_dboptions_t,
manager: *mut rocks_write_buffer_manager_t,
);
}
extern "C" {
pub fn rocks_dboptions_set_access_hint_on_compaction_start(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_new_table_reader_for_compaction_inputs(
opt: *mut rocks_dboptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_dboptions_set_compaction_readahead_size(opt: *mut rocks_dboptions_t, s: usize);
}
extern "C" {
pub fn rocks_dboptions_set_random_access_max_buffer_size(opt: *mut rocks_dboptions_t, s: usize);
}
extern "C" {
pub fn rocks_dboptions_set_writable_file_max_buffer_size(opt: *mut rocks_dboptions_t, s: usize);
}
extern "C" {
pub fn rocks_dboptions_set_use_adaptive_mutex(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_bytes_per_sync(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_wal_bytes_per_sync(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_add_listener(opt: *mut rocks_dboptions_t, listener_trait_obj: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn rocks_dboptions_set_enable_thread_tracking(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_delayed_write_rate(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_allow_concurrent_memtable_write(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_enable_write_thread_adaptive_yield(
opt: *mut rocks_dboptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_dboptions_set_write_thread_max_yield_usec(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_write_thread_slow_yield_usec(opt: *mut rocks_dboptions_t, v: u64);
}
extern "C" {
pub fn rocks_dboptions_set_skip_stats_update_on_db_open(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_wal_recovery_mode(opt: *mut rocks_dboptions_t, mode: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_dboptions_set_allow_2pc(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_row_cache(opt: *mut rocks_dboptions_t, cache: *mut rocks_cache_t);
}
extern "C" {
pub fn rocks_dboptions_set_fail_if_options_file_error(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_dump_malloc_stats(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_avoid_flush_during_recovery(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_avoid_flush_during_shutdown(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_allow_ingest_behind(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_dboptions_set_manual_wal_flush(opt: *mut rocks_dboptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_options_prepare_for_bulk_load(opt: *mut rocks_options_t);
}
extern "C" {
pub fn rocks_options_optimize_for_small_db(opt: *mut rocks_options_t);
}
extern "C" {
pub fn rocks_readoptions_create() -> *mut rocks_readoptions_t;
}
extern "C" {
pub fn rocks_readoptions_new(
cksum: ::std::os::raw::c_uchar,
cache: ::std::os::raw::c_uchar,
) -> *mut rocks_readoptions_t;
}
extern "C" {
pub fn rocks_readoptions_destroy(opt: *mut rocks_readoptions_t);
}
extern "C" {
pub fn rocks_readoptions_set_verify_checksums(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_fill_cache(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_snapshot(opt: *mut rocks_readoptions_t, snap: *const rocks_snapshot_t);
}
extern "C" {
pub fn rocks_readoptions_set_iterate_lower_bound(
opt: *mut rocks_readoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
);
}
extern "C" {
pub fn rocks_readoptions_set_iterate_upper_bound(
opt: *mut rocks_readoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
);
}
extern "C" {
pub fn rocks_readoptions_set_read_tier(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_readoptions_set_tailing(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_managed(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_readahead_size(opt: *mut rocks_readoptions_t, v: usize);
}
extern "C" {
pub fn rocks_readoptions_set_max_skippable_internal_keys(opt: *mut rocks_readoptions_t, v: u64);
}
extern "C" {
pub fn rocks_readoptions_set_pin_data(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_total_order_seek(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_prefix_same_as_start(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_ignore_range_deletions(opt: *mut rocks_readoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_readoptions_set_background_purge_on_iterator_cleanup(
opt: *mut rocks_readoptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_readoptions_set_iter_start_seqnum(opt: *mut rocks_readoptions_t, v: u64);
}
extern "C" {
pub fn rocks_writeoptions_create() -> *mut rocks_writeoptions_t;
}
extern "C" {
pub fn rocks_writeoptions_destroy(opt: *mut rocks_writeoptions_t);
}
extern "C" {
pub fn rocks_writeoptions_set_sync(opt: *mut rocks_writeoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_writeoptions_set_disable_wal(opt: *mut rocks_writeoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_writeoptions_set_ignore_missing_column_families(
opt: *mut rocks_writeoptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_writeoptions_set_no_slowdown(opt: *mut rocks_writeoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_writeoptions_set_low_pri(opt: *mut rocks_writeoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_writeoptions_set_memtable_insert_hint_per_batch(
opt: *mut rocks_writeoptions_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_compactrange_options_create() -> *mut rocks_compactrange_options_t;
}
extern "C" {
pub fn rocks_compactrange_options_destroy(opt: *mut rocks_compactrange_options_t);
}
extern "C" {
pub fn rocks_compactrange_options_set_exclusive_manual_compaction(
opt: *mut rocks_compactrange_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_compactrange_options_set_change_level(
opt: *mut rocks_compactrange_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_compactrange_options_set_target_level(opt: *mut rocks_compactrange_options_t, v: i32);
}
extern "C" {
pub fn rocks_compactrange_options_set_target_path_id(opt: *mut rocks_compactrange_options_t, v: u32);
}
extern "C" {
pub fn rocks_compactrange_options_set_bottommost_level_compaction(
opt: *mut rocks_compactrange_options_t,
v: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_create() -> *mut rocks_ingestexternalfile_options_t;
}
extern "C" {
pub fn rocks_ingestexternalfile_options_destroy(opt: *mut rocks_ingestexternalfile_options_t);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_set_move_files(
opt: *mut rocks_ingestexternalfile_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_set_snapshot_consistency(
opt: *mut rocks_ingestexternalfile_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_set_allow_global_seqno(
opt: *mut rocks_ingestexternalfile_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_set_allow_blocking_flush(
opt: *mut rocks_ingestexternalfile_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_ingestexternalfile_options_set_ingest_behind(
opt: *mut rocks_ingestexternalfile_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_flushoptions_create() -> *mut rocks_flushoptions_t;
}
extern "C" {
pub fn rocks_flushoptions_destroy(options: *mut rocks_flushoptions_t);
}
extern "C" {
pub fn rocks_flushoptions_set_wait(options: *mut rocks_flushoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_flushoptions_set_allow_write_stall(opt: *mut rocks_flushoptions_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_create_logger_from_options(
path: *const ::std::os::raw::c_char,
opts: *mut rocks_options_t,
status: *mut *mut rocks_status_t,
) -> *mut rocks_logger_t;
}
extern "C" {
pub fn rocks_fifo_compaction_options_create() -> *mut rocks_fifo_compaction_options_t;
}
extern "C" {
pub fn rocks_fifo_compaction_options_set_max_table_files_size(
fifo_opts: *mut rocks_fifo_compaction_options_t,
size: u64,
);
}
extern "C" {
pub fn rocks_fifo_compaction_options_set_allow_compaction(
fifo_opts: *mut rocks_fifo_compaction_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_fifo_compaction_options_destroy(fifo_opts: *mut rocks_fifo_compaction_options_t);
}
extern "C" {
pub fn rocks_compaction_options_create() -> *mut rocks_compaction_options_t;
}
extern "C" {
pub fn rocks_compaction_options_destroy(opts: *mut rocks_compaction_options_t);
}
extern "C" {
pub fn rocks_compaction_options_set_compression(opts: *mut rocks_compaction_options_t, val: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_compaction_options_set_output_file_size_limit(opts: *mut rocks_compaction_options_t, val: u64);
}
extern "C" {
pub fn rocks_column_family_handle_get_name(
handle: *const rocks_column_family_handle_t,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_handle_get_id(handle: *const rocks_column_family_handle_t) -> u32;
}
extern "C" {
pub fn rocks_db_open(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_close(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_resume(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_destroy(db: *mut rocks_db_t);
}
extern "C" {
pub fn rocks_db_open_for_read_only(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
error_if_log_file_exist: ::std::os::raw::c_uchar,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_open_as_secondary(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
secondary_path: *const ::std::os::raw::c_char,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_open_as_secondary_column_families(
options: *const rocks_dboptions_t,
name: *const ::std::os::raw::c_char,
secondary_path: *const ::std::os::raw::c_char,
num_column_families: ::std::os::raw::c_int,
column_family_names: *const *const ::std::os::raw::c_char,
column_family_options: *const *const rocks_cfoptions_t,
column_family_handles: *mut *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_try_catch_up_with_primary(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_open_column_families(
db_options: *const rocks_dboptions_t,
name: *const ::std::os::raw::c_char,
num_column_families: ::std::os::raw::c_int,
column_family_names: *const *const ::std::os::raw::c_char,
column_family_options: *const *const rocks_cfoptions_t,
column_family_handles: *mut *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_open_for_read_only_column_families(
db_options: *const rocks_dboptions_t,
name: *const ::std::os::raw::c_char,
num_column_families: ::std::os::raw::c_int,
column_family_names: *const *const ::std::os::raw::c_char,
column_family_options: *const *const rocks_cfoptions_t,
column_family_handles: *mut *mut rocks_column_family_handle_t,
error_if_log_file_exist: ::std::os::raw::c_uchar,
status: *mut *mut rocks_status_t,
) -> *mut rocks_db_t;
}
extern "C" {
pub fn rocks_db_list_column_families(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
lencfs: *mut usize,
status: *mut *mut rocks_status_t,
) -> *mut *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_db_list_column_families_destroy(list: *mut *mut ::std::os::raw::c_char, len: usize);
}
extern "C" {
pub fn rocks_db_create_column_family(
db: *mut rocks_db_t,
column_family_options: *const rocks_cfoptions_t,
column_family_name: *const ::std::os::raw::c_char,
status: *mut *mut rocks_status_t,
) -> *mut rocks_column_family_handle_t;
}
extern "C" {
pub fn rocks_db_default_column_family(db: *mut rocks_db_t) -> *mut rocks_column_family_handle_t;
}
extern "C" {
pub fn rocks_db_drop_column_family(
db: *mut rocks_db_t,
handle: *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_destroy_column_family_handle(
db: *mut rocks_db_t,
handle: *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_column_family_handle_destroy(handle: *mut rocks_column_family_handle_t);
}
extern "C" {
pub fn rocks_db_put(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
val: *const ::std::os::raw::c_char,
vallen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_put_cf(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
val: *const ::std::os::raw::c_char,
vallen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_delete(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_delete_cf(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_single_delete(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_single_delete_cf(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_delete_range_cf(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
column_family: *mut rocks_column_family_handle_t,
begin_key: *const ::std::os::raw::c_char,
begin_keylen: usize,
end_key: *const ::std::os::raw::c_char,
end_keylen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_merge(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
val: *const ::std::os::raw::c_char,
vallen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_merge_cf(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
val: *const ::std::os::raw::c_char,
vallen: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_write(
db: *mut rocks_db_t,
options: *const rocks_writeoptions_t,
batch: *mut rocks_raw_writebatch_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_pinnable(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
value: *mut rocks_pinnable_slice_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_cf_pinnable(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
keylen: usize,
value: *mut rocks_pinnable_slice_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_multi_get(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
num_keys: usize,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
values_list: *mut *mut ::std::os::raw::c_char,
values_list_sizes: *mut usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_multi_get_cf(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
column_families: *const *const rocks_column_family_handle_t,
num_keys: usize,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
values_list: *mut *mut ::std::os::raw::c_char,
values_list_sizes: *mut usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_multi_get_cf_coerce(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
num_keys: usize,
column_family: *const rocks_column_family_handle_t,
keys: *const ::std::os::raw::c_void,
values: *mut *mut rocks_pinnable_slice_t,
statuses: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_multi_get_cfs_coerce(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
num_keys: usize,
column_families: *const *const rocks_column_family_handle_t,
keys: *const ::std::os::raw::c_void,
values: *mut *mut rocks_pinnable_slice_t,
statuses: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_key_may_exist(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
value: *mut ::std::os::raw::c_void,
value_found: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_key_may_exist_cf(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
column_family: *const rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
value: *mut ::std::os::raw::c_void,
value_found: *mut ::std::os::raw::c_uchar,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_create_iterator(db: *mut rocks_db_t, options: *const rocks_readoptions_t) -> *mut rocks_iterator_t;
}
extern "C" {
pub fn rocks_db_create_iterator_cf(
db: *mut rocks_db_t,
options: *const rocks_readoptions_t,
column_family: *mut rocks_column_family_handle_t,
) -> *mut rocks_iterator_t;
}
extern "C" {
pub fn rocks_db_create_iterators(
db: *mut rocks_db_t,
opts: *mut rocks_readoptions_t,
column_families: *mut *mut rocks_column_family_handle_t,
iterators: *mut *mut rocks_iterator_t,
size: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_snapshot(db: *mut rocks_db_t) -> *mut rocks_snapshot_t;
}
extern "C" {
pub fn rocks_db_release_snapshot(db: *mut rocks_db_t, snapshot: *mut rocks_snapshot_t);
}
extern "C" {
pub fn rocks_db_get_property(
db: *mut rocks_db_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_get_property_cf(
db: *mut rocks_db_t,
cf: *mut rocks_column_family_handle_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_get_int_property(
db: *mut rocks_db_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut u64,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_get_int_property_cf(
db: *mut rocks_db_t,
cf: *mut rocks_column_family_handle_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut u64,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_get_aggregated_int_property(
db: *mut rocks_db_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut u64,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_db_compact_range(
db: *mut rocks_db_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
limit_key: *const ::std::os::raw::c_char,
limit_key_len: usize,
);
}
extern "C" {
pub fn rocks_db_compact_range_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
limit_key: *const ::std::os::raw::c_char,
limit_key_len: usize,
);
}
extern "C" {
pub fn rocks_db_compact_range_opt(
db: *mut rocks_db_t,
opt: *mut rocks_compactrange_options_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
limit_key: *const ::std::os::raw::c_char,
limit_key_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_compact_range_opt_cf(
db: *mut rocks_db_t,
opt: *mut rocks_compactrange_options_t,
column_family: *mut rocks_column_family_handle_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
limit_key: *const ::std::os::raw::c_char,
limit_key_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_set_options_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
num_options: usize,
keys: *const *const ::std::os::raw::c_char,
key_lens: *const usize,
vals: *const *const ::std::os::raw::c_char,
val_lens: *const usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_set_db_options(
db: *mut rocks_db_t,
num_options: usize,
keys: *const *const ::std::os::raw::c_char,
key_lens: *const usize,
vals: *const *const ::std::os::raw::c_char,
val_lens: *const usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_compact_files(
db: *mut rocks_db_t,
opt: *mut rocks_compaction_options_t,
num_files: usize,
file_names: *const *const ::std::os::raw::c_char,
file_name_lens: *const usize,
output_level: ::std::os::raw::c_int,
output_path_id: ::std::os::raw::c_int,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_pause_background_work(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_continue_background_work(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_enable_auto_compaction(
db: *mut rocks_db_t,
column_families: *const *const rocks_column_family_handle_t,
cf_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_number_levels_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_number_levels(db: *mut rocks_db_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_max_mem_compaction_level_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_max_mem_compaction_level(db: *mut rocks_db_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_level0_stop_write_trigger_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_level0_stop_write_trigger(db: *mut rocks_db_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_db_get_approximate_sizes_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
num_ranges: usize,
range_start_ptrs: *const *const ::std::os::raw::c_char,
range_start_lens: *const usize,
range_limit_ptrs: *const *const ::std::os::raw::c_char,
range_limit_lens: *const usize,
sizes: *mut u64,
);
}
extern "C" {
pub fn rocks_db_get_approximate_memtable_stats_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
range_start_ptr: *const ::std::os::raw::c_char,
range_start_len: usize,
range_limit_ptr: *const ::std::os::raw::c_char,
range_limit_len: usize,
count: *mut u64,
size: *mut u64,
);
}
extern "C" {
pub fn rocks_db_get_name(db: *mut rocks_db_t, s: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn rocks_db_flush(db: *mut rocks_db_t, options: *mut rocks_flushoptions_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_flush_cf(
db: *mut rocks_db_t,
options: *mut rocks_flushoptions_t,
column_family: *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_sync_wal(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_get_latest_sequence_number(db: *mut rocks_db_t) -> u64;
}
extern "C" {
pub fn rocks_db_disable_file_deletions(db: *mut rocks_db_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_db_enable_file_deletions(
db: *mut rocks_db_t,
force: ::std::os::raw::c_uchar,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_live_files(
db: *mut rocks_db_t,
flush_memtable: ::std::os::raw::c_uchar,
manifest_file_size: *mut u64,
status: *mut *mut rocks_status_t,
) -> *mut cxx_string_vector_t;
}
extern "C" {
pub fn rocks_db_get_sorted_wal_files(
db: *mut rocks_db_t,
status: *mut *mut rocks_status_t,
) -> *mut rocks_logfiles_t;
}
extern "C" {
pub fn rocks_db_get_update_since(
db: *mut rocks_db_t,
seq_no: u64,
status: *mut *mut rocks_status_t,
) -> *mut rocks_transaction_log_iterator_t;
}
extern "C" {
pub fn rocks_db_delete_file(
db: *mut rocks_db_t,
name: *const ::std::os::raw::c_char,
name_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_livefiles_metadata(db: *mut rocks_db_t) -> *const rocks_livefiles_t;
}
extern "C" {
pub fn rocks_db_get_column_family_metadata(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
) -> *const rocks_column_family_metadata_t;
}
extern "C" {
pub fn rocks_db_ingest_external_file(
db: *mut rocks_db_t,
file_list: *const *const ::std::os::raw::c_char,
file_list_sizes: *const usize,
file_len: usize,
options: *const rocks_ingestexternalfile_options_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_ingest_external_file_cf(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
file_list: *const *const ::std::os::raw::c_char,
file_list_sizes: *const usize,
file_len: usize,
options: *const rocks_ingestexternalfile_options_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_db_identity(
db: *mut rocks_db_t,
identity: *mut ::std::os::raw::c_void,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_db_get_properties_of_all_tables(
db: *mut rocks_db_t,
cf: *mut rocks_column_family_handle_t,
status: *mut *mut rocks_status_t,
) -> *mut rocks_table_props_collection_t;
}
extern "C" {
pub fn rocks_db_get_properties_of_tables_in_range(
db: *mut rocks_db_t,
cf: *mut rocks_column_family_handle_t,
num_ranges: usize,
start_keys: *const *const ::std::os::raw::c_char,
start_key_lens: *const usize,
limit_keys: *const *const ::std::os::raw::c_char,
limit_key_lens: *const usize,
status: *mut *mut rocks_status_t,
) -> *mut rocks_table_props_collection_t;
}
extern "C" {
pub fn rocks_destroy_db(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_repair_db(
options: *const rocks_options_t,
name: *const ::std::os::raw::c_char,
len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_ratelimiter_create(
rate_bytes_per_sec: i64,
refill_period_us: i64,
fairness: i32,
) -> *mut rocks_ratelimiter_t;
}
extern "C" {
pub fn rocks_ratelimiter_destroy(limiter: *mut rocks_ratelimiter_t);
}
extern "C" {
pub fn rocks_create_default_env() -> *mut rocks_env_t;
}
extern "C" {
pub fn rocks_create_mem_env() -> *mut rocks_env_t;
}
extern "C" {
pub fn rocks_create_timed_env() -> *mut rocks_env_t;
}
extern "C" {
pub fn rocks_env_destroy(env: *mut rocks_env_t);
}
extern "C" {
pub fn rocks_env_set_background_threads(env: *mut rocks_env_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_env_set_high_priority_background_threads(env: *mut rocks_env_t, n: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_env_join_all_threads(env: *mut rocks_env_t);
}
extern "C" {
pub fn rocks_env_get_thread_pool_queue_len(
env: *mut rocks_env_t,
pri: ::std::os::raw::c_int,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn rocks_env_new_logger(
env: *mut rocks_env_t,
name_ptr: *const ::std::os::raw::c_char,
name_len: usize,
status: *mut *mut rocks_status_t,
) -> *mut rocks_logger_t;
}
extern "C" {
pub fn rocks_env_now_micros(env: *mut rocks_env_t) -> u64;
}
extern "C" {
pub fn rocks_env_now_nanos(env: *mut rocks_env_t) -> u64;
}
extern "C" {
pub fn rocks_env_sleep_for_microseconds(env: *mut rocks_env_t, micros: i32);
}
extern "C" {
pub fn rocks_env_get_host_name(
env: *mut rocks_env_t,
name: *mut ::std::os::raw::c_char,
len: u64,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_env_get_current_time(env: *mut rocks_env_t, status: *mut *mut rocks_status_t) -> i64;
}
extern "C" {
pub fn rocks_env_time_to_string(env: *mut rocks_env_t, time: u64) -> *mut cxx_string_t;
}
extern "C" {
pub fn rocks_env_get_background_threads(env: *mut rocks_env_t, pri: ::std::os::raw::c_int)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_env_inc_background_threads_if_needed(
env: *mut rocks_env_t,
number: ::std::os::raw::c_int,
pri: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_env_lower_thread_pool_io_priority(env: *mut rocks_env_t, pool: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_env_get_thread_list(env: *mut rocks_env_t, len: *mut usize) -> *mut *mut rocks_thread_status_t;
}
extern "C" {
pub fn rocks_env_get_thread_list_destroy(p: *mut *mut rocks_thread_status_t);
}
extern "C" {
pub fn rocks_env_get_thread_id(env: *mut rocks_env_t) -> u64;
}
extern "C" {
pub fn rocks_envoptions_create() -> *mut rocks_envoptions_t;
}
extern "C" {
pub fn rocks_envoptions_destroy(opt: *mut rocks_envoptions_t);
}
extern "C" {
pub fn rocks_envoptions_set_use_mmap_reads(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_use_mmap_writes(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_use_direct_reads(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_use_direct_writes(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_allow_fallocate(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_fd_cloexec(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_bytes_per_sync(opt: *mut rocks_envoptions_t, val: u64);
}
extern "C" {
pub fn rocks_envoptions_set_fallocate_with_keep_size(opt: *mut rocks_envoptions_t, val: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_envoptions_set_compaction_readahead_size(opt: *mut rocks_envoptions_t, val: usize);
}
extern "C" {
pub fn rocks_envoptions_set_random_access_max_buffer_size(opt: *mut rocks_envoptions_t, val: usize);
}
extern "C" {
pub fn rocks_envoptions_set_writable_file_max_buffer_size(opt: *mut rocks_envoptions_t, val: usize);
}
extern "C" {
pub fn rocks_logger_destroy(logger: *mut rocks_logger_t);
}
extern "C" {
pub fn rocks_logger_log(
logger: *mut rocks_logger_t,
log_level: ::std::os::raw::c_int,
msg_ptr: *const ::std::os::raw::c_char,
msg_len: usize,
);
}
extern "C" {
pub fn rocks_logger_flush(logger: *mut rocks_logger_t);
}
extern "C" {
pub fn rocks_logger_set_log_level(logger: *mut rocks_logger_t, log_level: ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_logger_get_log_level(logger: *mut rocks_logger_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_create_snapshot(db: *mut rocks_db_t) -> *const rocks_snapshot_t;
}
extern "C" {
pub fn rocks_snapshot_destroy(snapshot: *mut rocks_snapshot_t);
}
extern "C" {
pub fn rocks_release_snapshot(db: *mut rocks_db_t, snapshot: *const rocks_snapshot_t);
}
extern "C" {
pub fn rocks_snapshot_get_sequence_number(snapshot: *mut rocks_snapshot_t) -> u64;
}
extern "C" {
pub fn rocks_writebatch_create() -> *mut rocks_writebatch_t;
}
extern "C" {
pub fn rocks_writebatch_create_with_reserved_bytes(size: usize) -> *mut rocks_writebatch_t;
}
extern "C" {
pub fn rocks_writebatch_destroy(b: *mut rocks_writebatch_t);
}
extern "C" {
pub fn rocks_writebatch_clear(b: *mut rocks_writebatch_t);
}
extern "C" {
pub fn rocks_writebatch_count(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_writebatch_put(
b: *mut rocks_writebatch_t,
key: *const ::std::os::raw::c_char,
klen: usize,
val: *const ::std::os::raw::c_char,
vlen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_put_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
klen: usize,
val: *const ::std::os::raw::c_char,
vlen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_putv(
b: *mut rocks_writebatch_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
num_values: ::std::os::raw::c_int,
values_list: *const *const ::std::os::raw::c_char,
values_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_putv_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
num_values: ::std::os::raw::c_int,
values_list: *const *const ::std::os::raw::c_char,
values_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_putv_coerce(
b: *mut rocks_writebatch_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
value_parts: *const ::std::os::raw::c_void,
num_values: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_putv_cf_coerce(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
value_parts: *const ::std::os::raw::c_void,
num_values: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_merge(
b: *mut rocks_writebatch_t,
key: *const ::std::os::raw::c_char,
klen: usize,
val: *const ::std::os::raw::c_char,
vlen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_merge_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
klen: usize,
val: *const ::std::os::raw::c_char,
vlen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_mergev(
b: *mut rocks_writebatch_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
num_values: ::std::os::raw::c_int,
values_list: *const *const ::std::os::raw::c_char,
values_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_mergev_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
num_values: ::std::os::raw::c_int,
values_list: *const *const ::std::os::raw::c_char,
values_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_mergev_coerce(
b: *mut rocks_writebatch_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
value_parts: *const ::std::os::raw::c_void,
num_values: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_mergev_cf_coerce(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
value_parts: *const ::std::os::raw::c_void,
num_values: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_delete(b: *mut rocks_writebatch_t, key: *const ::std::os::raw::c_char, klen: usize);
}
extern "C" {
pub fn rocks_writebatch_delete_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
klen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_deletev(
b: *mut rocks_writebatch_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_deletev_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
num_keys: ::std::os::raw::c_int,
keys_list: *const *const ::std::os::raw::c_char,
keys_list_sizes: *const usize,
);
}
extern "C" {
pub fn rocks_writebatch_deletev_coerce(
b: *mut rocks_writebatch_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_deletev_cf_coerce(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_single_deletev_coerce(
b: *mut rocks_writebatch_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_single_deletev_cf_coerce(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key_parts: *const ::std::os::raw::c_void,
num_keys: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_single_delete(b: *mut rocks_writebatch_t, key: *const ::std::os::raw::c_char, klen: usize);
}
extern "C" {
pub fn rocks_writebatch_single_delete_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
key: *const ::std::os::raw::c_char,
klen: usize,
);
}
extern "C" {
pub fn rocks_writebatch_delete_range(
b: *mut rocks_writebatch_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
end_key: *const ::std::os::raw::c_char,
end_key_len: usize,
);
}
extern "C" {
pub fn rocks_writebatch_delete_range_cf(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
start_key: *const ::std::os::raw::c_char,
start_key_len: usize,
end_key: *const ::std::os::raw::c_char,
end_key_len: usize,
);
}
extern "C" {
pub fn rocks_writebatch_deletev_range_cf_coerce(
b: *mut rocks_writebatch_t,
column_family: *mut rocks_column_family_handle_t,
begin_key_parts: *const ::std::os::raw::c_void,
num_begin_keys: ::std::os::raw::c_int,
end_key_parts: *const ::std::os::raw::c_void,
num_end_keys: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_writebatch_put_log_data(b: *mut rocks_writebatch_t, blob: *const ::std::os::raw::c_char, len: usize);
}
extern "C" {
pub fn rocks_writebatch_iterate(
b: *mut rocks_writebatch_t,
trait_obj: *mut ::std::os::raw::c_void,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_writebatch_data(b: *mut rocks_writebatch_t, size: *mut usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_writebatch_set_save_point(b: *mut rocks_writebatch_t);
}
extern "C" {
pub fn rocks_writebatch_rollback_to_save_point(b: *mut rocks_writebatch_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_writebatch_pop_save_point(b: *mut rocks_writebatch_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_writebatch_has_put(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_delete(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_single_delete(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_delete_range(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_merge(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_begin_prepare(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_end_prepare(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_commit(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_has_rollback(b: *mut rocks_writebatch_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_writebatch_copy(b: *mut rocks_writebatch_t) -> *mut rocks_writebatch_t;
}
extern "C" {
pub fn rocks_writebatch_get_writebatch(b: *mut rocks_writebatch_t) -> *mut rocks_raw_writebatch_t;
}
extern "C" {
pub fn rocks_plain_table_options_create() -> *mut rocks_plain_table_options_t;
}
extern "C" {
pub fn rocks_plain_table_options_destroy(options: *mut rocks_plain_table_options_t);
}
extern "C" {
pub fn rocks_plain_table_options_set_user_key_len(options: *mut rocks_plain_table_options_t, val: u32);
}
extern "C" {
pub fn rocks_plain_table_options_set_bloom_bits_per_key(
options: *mut rocks_plain_table_options_t,
val: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_plain_table_options_set_hash_table_ratio(options: *mut rocks_plain_table_options_t, val: f64);
}
extern "C" {
pub fn rocks_plain_table_options_set_index_sparseness(options: *mut rocks_plain_table_options_t, val: usize);
}
extern "C" {
pub fn rocks_plain_table_options_set_huge_page_tlb_size(options: *mut rocks_plain_table_options_t, val: usize);
}
extern "C" {
pub fn rocks_plain_table_options_set_encoding_type(
options: *mut rocks_plain_table_options_t,
val: ::std::os::raw::c_char,
);
}
extern "C" {
pub fn rocks_plain_table_options_set_full_scan_mode(
options: *mut rocks_plain_table_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_plain_table_options_set_store_index_in_file(
options: *mut rocks_plain_table_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_create() -> *mut rocks_block_based_table_options_t;
}
extern "C" {
pub fn rocks_block_based_table_options_destroy(options: *mut rocks_block_based_table_options_t);
}
extern "C" {
pub fn rocks_block_based_table_options_set_cache_index_and_filter_blocks(
options: *mut rocks_block_based_table_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_cache_index_and_filter_blocks_with_high_priority(
options: *mut rocks_block_based_table_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_pin_l0_filter_and_index_blocks_in_cache(
options: *mut rocks_block_based_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_index_type(
options: *mut rocks_block_based_table_options_t,
v: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_hash_index_allow_collision(
options: *mut rocks_block_based_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_no_block_cache(
options: *mut rocks_block_based_table_options_t,
no_block_cache: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_block_cache(
options: *mut rocks_block_based_table_options_t,
block_cache: *mut rocks_cache_t,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_persistent_cache(
options: *mut rocks_block_based_table_options_t,
cache: *mut rocks_persistent_cache_t,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_block_cache_compressed(
options: *mut rocks_block_based_table_options_t,
block_cache_compressed: *mut rocks_cache_t,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_block_size(
options: *mut rocks_block_based_table_options_t,
block_size: usize,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_block_size_deviation(
options: *mut rocks_block_based_table_options_t,
block_size_deviation: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_block_restart_interval(
options: *mut rocks_block_based_table_options_t,
block_restart_interval: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_index_block_restart_interval(
options: *mut rocks_block_based_table_options_t,
val: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_metadata_block_size(
options: *mut rocks_block_based_table_options_t,
val: u64,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_partition_filters(
options: *mut rocks_block_based_table_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_use_delta_encoding(
options: *mut rocks_block_based_table_options_t,
no_block_cache: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_filter_policy(
options: *mut rocks_block_based_table_options_t,
policy: *mut rocks_raw_filterpolicy_t,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_whole_key_filtering(
options: *mut rocks_block_based_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_verify_compression(
options: *mut rocks_block_based_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_read_amp_bytes_per_bit(
options: *mut rocks_block_based_table_options_t,
v: u32,
);
}
extern "C" {
pub fn rocks_block_based_table_options_set_format_version(options: *mut rocks_block_based_table_options_t, v: u32);
}
extern "C" {
pub fn rocks_cuckoo_table_options_create() -> *mut rocks_cuckoo_table_options_t;
}
extern "C" {
pub fn rocks_cuckoo_table_options_destroy(options: *mut rocks_cuckoo_table_options_t);
}
extern "C" {
pub fn rocks_cuckoo_table_options_set_hash_table_ratio(options: *mut rocks_cuckoo_table_options_t, v: f64);
}
extern "C" {
pub fn rocks_cuckoo_table_options_set_max_search_depth(options: *mut rocks_cuckoo_table_options_t, v: u32);
}
extern "C" {
pub fn rocks_cuckoo_table_options_set_cuckoo_block_size(options: *mut rocks_cuckoo_table_options_t, v: u32);
}
extern "C" {
pub fn rocks_cuckoo_table_options_set_identity_as_first_hash(
options: *mut rocks_cuckoo_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_cuckoo_table_options_set_use_module_hash(
options: *mut rocks_cuckoo_table_options_t,
v: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_iter_destroy(iter: *mut rocks_iterator_t);
}
extern "C" {
pub fn rocks_iter_valid(iter: *const rocks_iterator_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_iter_seek_to_first(iter: *mut rocks_iterator_t);
}
extern "C" {
pub fn rocks_iter_seek_to_last(iter: *mut rocks_iterator_t);
}
extern "C" {
pub fn rocks_iter_seek(iter: *mut rocks_iterator_t, k: *const ::std::os::raw::c_char, klen: usize);
}
extern "C" {
pub fn rocks_iter_seek_for_prev(iter: *mut rocks_iterator_t, k: *const ::std::os::raw::c_char, klen: usize);
}
extern "C" {
pub fn rocks_iter_next(iter: *mut rocks_iterator_t);
}
extern "C" {
pub fn rocks_iter_prev(iter: *mut rocks_iterator_t);
}
extern "C" {
pub fn rocks_iter_key(iter: *const rocks_iterator_t, klen: *mut usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_iter_value(iter: *const rocks_iterator_t, vlen: *mut usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_iter_get_status(iter: *const rocks_iterator_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_iter_get_property(
iter: *const rocks_iterator_t,
prop: *const ::std::os::raw::c_char,
prop_len: usize,
value: *mut ::std::os::raw::c_void,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_new_empty_iterator() -> *mut rocks_iterator_t;
}
extern "C" {
pub fn rocks_raw_filterpolicy_new_bloomfilter(
bits_per_key: ::std::os::raw::c_int,
use_block_based_builder: ::std::os::raw::c_uchar,
) -> *mut rocks_raw_filterpolicy_t;
}
extern "C" {
pub fn rocks_raw_filterpolicy_destroy(cache: *mut rocks_raw_filterpolicy_t);
}
extern "C" {
pub fn rocks_cache_create_lru(
capacity: usize,
num_shard_bits: ::std::os::raw::c_int,
strict_capacity_limit: ::std::os::raw::c_char,
high_pri_pool_ratio: f64,
) -> *mut rocks_cache_t;
}
extern "C" {
pub fn rocks_cache_create_clock(
capacity: usize,
num_shard_bits: ::std::os::raw::c_int,
strict_capacity_limit: ::std::os::raw::c_char,
) -> *mut rocks_cache_t;
}
extern "C" {
pub fn rocks_cache_destroy(cache: *mut rocks_cache_t);
}
extern "C" {
pub fn rocks_cache_set_capacity(cache: *mut rocks_cache_t, capacity: usize);
}
extern "C" {
pub fn rocks_cache_get_capacity(cache: *mut rocks_cache_t) -> usize;
}
extern "C" {
pub fn rocks_cache_get_usage(cache: *mut rocks_cache_t) -> usize;
}
extern "C" {
pub fn rocks_cache_get_pinned_usage(cache: *mut rocks_cache_t) -> usize;
}
extern "C" {
pub fn rocks_cache_name(cache: *mut rocks_cache_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_new_persistent_cache(
env: *const rocks_env_t,
path: *const ::std::os::raw::c_char,
path_len: usize,
size: u64,
log: *const rocks_logger_t,
optimized_for_nvm: ::std::os::raw::c_uchar,
status: *mut *mut rocks_status_t,
) -> *mut rocks_persistent_cache_t;
}
extern "C" {
pub fn rocks_persistent_cache_destroy(cache: *mut rocks_persistent_cache_t);
}
extern "C" {
pub fn rocks_persistent_cache_clone(cache: *mut rocks_persistent_cache_t) -> *mut rocks_persistent_cache_t;
}
extern "C" {
pub fn rocks_persistent_cache_get_printable_options(cache: *mut rocks_persistent_cache_t) -> *mut cxx_string_t;
}
extern "C" {
pub fn rocks_external_sst_file_info_create() -> *mut rocks_external_sst_file_info_t;
}
extern "C" {
pub fn rocks_external_sst_file_info_destroy(info: *mut rocks_external_sst_file_info_t);
}
extern "C" {
pub fn rocks_external_sst_file_info_get_file_path(
info: *mut rocks_external_sst_file_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_smallest_key(
info: *mut rocks_external_sst_file_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_largest_key(
info: *mut rocks_external_sst_file_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_sequence_number(info: *mut rocks_external_sst_file_info_t) -> u64;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_file_size(info: *mut rocks_external_sst_file_info_t) -> u64;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_num_entries(info: *mut rocks_external_sst_file_info_t) -> u64;
}
extern "C" {
pub fn rocks_external_sst_file_info_get_version(info: *mut rocks_external_sst_file_info_t) -> i32;
}
extern "C" {
pub fn rocks_sst_file_writer_create_from_c_comparator(
env_options: *const rocks_envoptions_t,
options: *const rocks_options_t,
comparator: *const rocks_c_comparator_t,
column_family: *mut rocks_column_family_handle_t,
invalidate_page_cache: ::std::os::raw::c_uchar,
) -> *mut rocks_sst_file_writer_t;
}
extern "C" {
pub fn rocks_sst_file_writer_create_from_rust_comparator(
env_options: *const rocks_envoptions_t,
options: *const rocks_options_t,
comparator: *const ::std::os::raw::c_void,
column_family: *mut rocks_column_family_handle_t,
invalidate_page_cache: ::std::os::raw::c_uchar,
) -> *mut rocks_sst_file_writer_t;
}
extern "C" {
pub fn rocks_sst_file_writer_destroy(writer: *mut rocks_sst_file_writer_t);
}
extern "C" {
pub fn rocks_sst_file_writer_open(
writer: *mut rocks_sst_file_writer_t,
file_path: *const ::std::os::raw::c_char,
file_path_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_sst_file_writer_put(
writer: *mut rocks_sst_file_writer_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_sst_file_writer_merge(
writer: *mut rocks_sst_file_writer_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
value: *const ::std::os::raw::c_char,
value_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_sst_file_writer_delete(
writer: *mut rocks_sst_file_writer_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_sst_file_writer_finish(
writer: *mut rocks_sst_file_writer_t,
info: *mut rocks_external_sst_file_info_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_sst_file_writer_file_size(writer: *mut rocks_sst_file_writer_t) -> u64;
}
extern "C" {
pub fn rocks_comparator_bytewise() -> *const rocks_c_comparator_t;
}
extern "C" {
pub fn rocks_comparator_bytewise_reversed() -> *const rocks_c_comparator_t;
}
extern "C" {
pub fn rocks_version_major() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_version_minor() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_version_patch() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_dump_options_create() -> *mut rocks_dump_options_t;
}
extern "C" {
pub fn rocks_dump_options_destroy(options: *mut rocks_dump_options_t);
}
extern "C" {
pub fn rocks_dump_options_set_db_path(
opt: *mut rocks_dump_options_t,
path: *const ::std::os::raw::c_char,
path_len: usize,
);
}
extern "C" {
pub fn rocks_dump_options_set_dump_location(
opt: *mut rocks_dump_options_t,
path: *const ::std::os::raw::c_char,
path_len: usize,
);
}
extern "C" {
pub fn rocks_dump_options_set_anonymous(opt: *mut rocks_dump_options_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_db_dump_tool_run(
dump_options: *mut rocks_dump_options_t,
options: *mut rocks_options_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_undump_options_create() -> *mut rocks_undump_options_t;
}
extern "C" {
pub fn rocks_undump_options_destroy(options: *mut rocks_undump_options_t);
}
extern "C" {
pub fn rocks_undump_options_set_db_path(
opt: *mut rocks_undump_options_t,
path: *const ::std::os::raw::c_char,
path_len: usize,
);
}
extern "C" {
pub fn rocks_undump_options_set_dump_location(
opt: *mut rocks_undump_options_t,
path: *const ::std::os::raw::c_char,
path_len: usize,
);
}
extern "C" {
pub fn rocks_undump_options_set_compact_db(opt: *mut rocks_undump_options_t, v: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_db_undump_tool_run(
undump_options: *mut rocks_undump_options_t,
options: *mut rocks_options_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_set_perf_level(level: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_get_perf_level() -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_get_iostats_context() -> *mut rocks_iostats_context_t;
}
extern "C" {
pub fn rocks_iostats_context_reset(ctx: *mut rocks_iostats_context_t);
}
extern "C" {
pub fn rocks_iostats_context_to_string(
ctx: *const rocks_iostats_context_t,
exclude_zero_counters: ::std::os::raw::c_uchar,
s: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_get_perf_context() -> *mut rocks_perf_context_t;
}
extern "C" {
pub fn rocks_perf_context_reset(ctx: *mut rocks_perf_context_t);
}
extern "C" {
pub fn rocks_perf_context_to_string(
ctx: *const rocks_perf_context_t,
exclude_zero_counters: ::std::os::raw::c_uchar,
s: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_statistics_create() -> *mut rocks_statistics_t;
}
extern "C" {
pub fn rocks_statistics_copy(stat: *mut rocks_statistics_t) -> *mut rocks_statistics_t;
}
extern "C" {
pub fn rocks_statistics_destroy(stat: *mut rocks_statistics_t);
}
extern "C" {
pub fn rocks_statistics_get_ticker_count(
stat: *mut rocks_statistics_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> u64;
}
extern "C" {
pub fn rocks_statistics_histogram_data(
stat: *mut rocks_statistics_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
data: *mut rocks_histogram_data_t,
);
}
extern "C" {
pub fn rocks_statistics_get_histogram_string(
stat: *mut rocks_statistics_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
str: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn rocks_statistics_record_tick(stat: *mut rocks_statistics_t, tickerType: u32, count: u64);
}
extern "C" {
pub fn rocks_statistics_set_ticker_count(stat: *mut rocks_statistics_t, tickerType: u32, count: u64);
}
extern "C" {
pub fn rocks_statistics_get_and_reset_ticker_count(
stat: *mut rocks_statistics_t,
key: *const ::std::os::raw::c_char,
key_len: usize,
) -> u64;
}
extern "C" {
pub fn rocks_statistics_measure_time(stat: *mut rocks_statistics_t, histogramType: u32, time: u64);
}
extern "C" {
pub fn rocks_statistics_to_string(stat: *mut rocks_statistics_t, str: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn rocks_statistics_hist_enabled_for_type(stat: *mut rocks_statistics_t, type_: u32)
-> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_statistics_reset(stat: *mut rocks_statistics_t, status: *mut *mut rocks_status_t);
}
extern "C" {
pub fn rocks_livefiles_count(lf: *const rocks_livefiles_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_livefiles_name(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_livefiles_column_family_name(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_livefiles_db_path(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_livefiles_smallest_seqno(lf: *const rocks_livefiles_t, index: ::std::os::raw::c_int) -> u64;
}
extern "C" {
pub fn rocks_livefiles_largest_seqno(lf: *const rocks_livefiles_t, index: ::std::os::raw::c_int) -> u64;
}
extern "C" {
pub fn rocks_livefiles_level(lf: *const rocks_livefiles_t, index: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_livefiles_size(lf: *const rocks_livefiles_t, index: ::std::os::raw::c_int) -> usize;
}
extern "C" {
pub fn rocks_livefiles_smallestkey(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
size: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_livefiles_largestkey(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
size: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_livefiles_being_compacted(
lf: *const rocks_livefiles_t,
index: ::std::os::raw::c_int,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_livefiles_destroy(lf: *const rocks_livefiles_t);
}
extern "C" {
pub fn rocks_column_family_metadata_size(meta: *const rocks_column_family_metadata_t) -> u64;
}
extern "C" {
pub fn rocks_column_family_metadata_file_count(meta: *const rocks_column_family_metadata_t) -> usize;
}
extern "C" {
pub fn rocks_column_family_metadata_name(
meta: *const rocks_column_family_metadata_t,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_count(
meta: *const rocks_column_family_metadata_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_level(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_size(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
) -> u64;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_count(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_size(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> usize;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_name(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_db_path(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_smallest_seqno(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> u64;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_largest_seqno(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> u64;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_smallestkey(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
size: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_largestkey(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
size: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_column_family_metadata_levels_files_being_compacted(
meta: *const rocks_column_family_metadata_t,
level: ::std::os::raw::c_int,
file_index: ::std::os::raw::c_int,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_column_family_metadata_destroy(meta: *const rocks_column_family_metadata_t);
}
extern "C" {
pub fn rocks_universal_compaction_options_create() -> *mut rocks_universal_compaction_options_t;
}
extern "C" {
pub fn rocks_universal_compaction_options_set_size_ratio(
uco: *mut rocks_universal_compaction_options_t,
ratio: ::std::os::raw::c_uint,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_min_merge_width(
uco: *mut rocks_universal_compaction_options_t,
w: ::std::os::raw::c_uint,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_max_merge_width(
uco: *mut rocks_universal_compaction_options_t,
w: ::std::os::raw::c_uint,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_max_size_amplification_percent(
uco: *mut rocks_universal_compaction_options_t,
p: ::std::os::raw::c_uint,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_compression_size_percent(
uco: *mut rocks_universal_compaction_options_t,
p: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_stop_style(
uco: *mut rocks_universal_compaction_options_t,
style: ::std::os::raw::c_int,
);
}
extern "C" {
pub fn rocks_universal_compaction_options_destroy(uco: *mut rocks_universal_compaction_options_t);
}
extern "C" {
pub fn rocks_universal_compaction_options_set_allow_trivial_move(
uco: *mut rocks_universal_compaction_options_t,
val: ::std::os::raw::c_uchar,
);
}
extern "C" {
pub fn rocks_logfiles_destroy(files: *mut rocks_logfiles_t);
}
extern "C" {
pub fn rocks_logfiles_size(files: *mut rocks_logfiles_t) -> usize;
}
extern "C" {
pub fn rocks_logfiles_nth_path_name(files: *mut rocks_logfiles_t, nth: usize, s: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn rocks_logfiles_nth_log_number(files: *mut rocks_logfiles_t, nth: usize) -> u64;
}
extern "C" {
pub fn rocks_logfiles_nth_type(files: *mut rocks_logfiles_t, nth: usize) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_logfiles_nth_start_sequence(files: *mut rocks_logfiles_t, nth: usize) -> u64;
}
extern "C" {
pub fn rocks_logfiles_nth_file_size(files: *mut rocks_logfiles_t, nth: usize) -> u64;
}
extern "C" {
pub fn rocks_transaction_log_iterator_destory(it: *mut rocks_transaction_log_iterator_t);
}
extern "C" {
pub fn rocks_transaction_log_iterator_valid(it: *mut rocks_transaction_log_iterator_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_transaction_log_iterator_next(it: *mut rocks_transaction_log_iterator_t);
}
extern "C" {
pub fn rocks_transaction_log_iterator_status(
it: *mut rocks_transaction_log_iterator_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_transaction_log_iterator_get_batch(
it: *mut rocks_transaction_log_iterator_t,
seq_no: *mut u64,
) -> *mut rocks_writebatch_t;
}
extern "C" {
pub fn rocks_get_supported_compressions(len: *mut usize) -> *mut ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_get_supported_compressions_destroy(ptr: *mut ::std::os::raw::c_int);
}
extern "C" {
pub fn rocks_cancel_all_background_work(db: *mut rocks_db_t, wait: ::std::os::raw::c_uchar);
}
extern "C" {
pub fn rocks_db_delete_files_in_range(
db: *mut rocks_db_t,
column_family: *mut rocks_column_family_handle_t,
begin_ptr: *const ::std::os::raw::c_char,
begin_len: usize,
end_ptr: *const ::std::os::raw::c_char,
end_len: usize,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_get_string_from_dboptions(opts: *mut rocks_dboptions_t) -> *mut cxx_string_t;
}
extern "C" {
pub fn rocks_get_string_from_cfoptions(opts: *mut rocks_cfoptions_t) -> *mut cxx_string_t;
}
extern "C" {
pub fn rocks_table_props_collection_destroy(coll: *mut rocks_table_props_collection_t);
}
extern "C" {
pub fn rocks_table_props_destroy(props: *mut rocks_table_props_t);
}
extern "C" {
pub fn rocks_table_props_collection_iter_destroy(it: *mut rocks_table_props_collection_iter_t);
}
extern "C" {
pub fn rocks_user_collected_props_iter_destroy(it: *mut rocks_user_collected_props_iter_t);
}
extern "C" {
pub fn rocks_table_props_collection_size(coll: *mut rocks_table_props_collection_t) -> usize;
}
extern "C" {
pub fn rocks_table_props_collection_at(
coll: *mut rocks_table_props_collection_t,
key_ptr: *const ::std::os::raw::c_char,
key_len: usize,
) -> *mut rocks_table_props_t;
}
extern "C" {
pub fn rocks_table_props_collection_iter_create(
coll: *mut rocks_table_props_collection_t,
) -> *mut rocks_table_props_collection_iter_t;
}
extern "C" {
pub fn rocks_table_props_collection_iter_next(
it: *mut rocks_table_props_collection_iter_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_table_props_collection_iter_key(
it: *mut rocks_table_props_collection_iter_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_collection_iter_value(
it: *mut rocks_table_props_collection_iter_t,
) -> *mut rocks_table_props_t;
}
extern "C" {
pub fn rocks_table_props_get_data_size(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_index_size(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_filter_size(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_raw_key_size(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_raw_value_size(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_num_data_blocks(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_num_entries(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_format_version(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_fixed_key_len(prop: *mut rocks_table_props_t) -> u64;
}
extern "C" {
pub fn rocks_table_props_get_column_family_id(prop: *mut rocks_table_props_t) -> u32;
}
extern "C" {
pub fn rocks_table_props_get_column_family_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_filter_policy_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_comparator_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_merge_operator_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_prefix_extractor_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_property_collectors_names(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_get_compression_name(
prop: *mut rocks_table_props_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_props_to_string(prop: *mut rocks_table_props_t, s: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn rocks_table_props_get_user_collected_properties(
prop: *mut rocks_table_props_t,
) -> *mut rocks_user_collected_props_t;
}
extern "C" {
pub fn rocks_table_props_get_readable_properties(
prop: *mut rocks_table_props_t,
) -> *mut rocks_user_collected_props_t;
}
extern "C" {
pub fn rocks_user_collected_props_insert(
prop: *mut rocks_user_collected_props_t,
key_ptr: *const ::std::os::raw::c_char,
key_len: usize,
val_ptr: *const ::std::os::raw::c_char,
val_len: usize,
);
}
extern "C" {
pub fn rocks_user_collected_props_size(prop: *mut rocks_user_collected_props_t) -> usize;
}
extern "C" {
pub fn rocks_user_collected_props_at(
prop: *mut rocks_user_collected_props_t,
key_ptr: *const ::std::os::raw::c_char,
key_len: usize,
value_len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_user_collected_props_iter_create(
prop: *mut rocks_user_collected_props_t,
) -> *mut rocks_user_collected_props_iter_t;
}
extern "C" {
pub fn rocks_user_collected_props_iter_next(it: *mut rocks_user_collected_props_iter_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_user_collected_props_iter_key(
it: *mut rocks_user_collected_props_iter_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_user_collected_props_iter_value(
it: *mut rocks_user_collected_props_iter_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_write_buffer_manager_create(buffer_size: usize) -> *mut rocks_write_buffer_manager_t;
}
extern "C" {
pub fn rocks_write_buffer_manager_destroy(manager: *mut rocks_write_buffer_manager_t);
}
extern "C" {
pub fn rocks_write_buffer_manager_enabled(manager: *mut rocks_write_buffer_manager_t) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_write_buffer_manager_memory_usage(manager: *mut rocks_write_buffer_manager_t) -> usize;
}
extern "C" {
pub fn rocks_write_buffer_manager_buffer_size(manager: *mut rocks_write_buffer_manager_t) -> usize;
}
extern "C" {
pub fn rocks_db_get_all_key_versions(
db: *mut rocks_db_t,
begin_key: *const ::std::os::raw::c_char,
begin_keylen: usize,
end_key: *const ::std::os::raw::c_char,
end_keylen: usize,
status: *mut *mut rocks_status_t,
) -> *mut rocks_key_version_collection_t;
}
extern "C" {
pub fn rocks_key_version_collection_destroy(coll: *mut rocks_key_version_collection_t);
}
extern "C" {
pub fn rocks_key_version_collection_size(coll: *mut rocks_key_version_collection_t) -> usize;
}
extern "C" {
pub fn rocks_key_version_collection_nth(
coll: *mut rocks_key_version_collection_t,
index: usize,
) -> *mut rocks_key_version_t;
}
extern "C" {
pub fn rocks_key_version_user_key(
ver: *const rocks_key_version_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_key_version_value(ver: *const rocks_key_version_t, len: *mut usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_key_version_sequence_numer(ver: *const rocks_key_version_t) -> u64;
}
extern "C" {
pub fn rocks_key_version_type(ver: *const rocks_key_version_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_flush_job_info_get_cf_name(
info: *const rocks_flush_job_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_flush_job_info_get_file_path(
info: *const rocks_flush_job_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_flush_job_info_get_thread_id(info: *const rocks_flush_job_info_t) -> u64;
}
extern "C" {
pub fn rocks_flush_job_info_get_job_id(info: *const rocks_flush_job_info_t) -> u64;
}
extern "C" {
pub fn rocks_flush_job_info_get_triggered_writes_slowdown(
info: *const rocks_flush_job_info_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_flush_job_info_get_triggered_writes_stop(
info: *const rocks_flush_job_info_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_flush_job_info_get_smallest_seqno(info: *const rocks_flush_job_info_t) -> u64;
}
extern "C" {
pub fn rocks_flush_job_info_get_largest_seqno(info: *const rocks_flush_job_info_t) -> u64;
}
extern "C" {
pub fn rocks_flush_job_info_get_table_properties(info: *const rocks_flush_job_info_t) -> *mut rocks_table_props_t;
}
extern "C" {
pub fn rocks_table_file_deletion_info_get_db_name(
info: *const rocks_table_file_deletion_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_file_deletion_info_get_file_path(
info: *const rocks_table_file_deletion_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_file_deletion_info_get_job_id(info: *const rocks_table_file_deletion_info_t) -> u64;
}
extern "C" {
pub fn rocks_table_file_deletion_info_get_status(
info: *const rocks_table_file_deletion_info_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_compaction_job_info_get_cf_name(
info: *const rocks_compaction_job_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_compaction_job_info_get_status(
info: *const rocks_compaction_job_info_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_compaction_job_info_get_thread_id(info: *const rocks_compaction_job_info_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_info_get_job_id(info: *const rocks_compaction_job_info_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_compaction_job_info_get_base_input_level(
info: *const rocks_compaction_job_info_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_compaction_job_info_get_output_level(
info: *const rocks_compaction_job_info_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_compaction_job_info_get_input_files_num(info: *const rocks_compaction_job_info_t) -> usize;
}
extern "C" {
pub fn rocks_compaction_job_info_get_input_files(
info: *const rocks_compaction_job_info_t,
files: *mut *const ::std::os::raw::c_char,
sizes: *mut usize,
);
}
extern "C" {
pub fn rocks_compaction_job_info_get_output_files_num(info: *const rocks_compaction_job_info_t) -> usize;
}
extern "C" {
pub fn rocks_compaction_job_info_get_output_files(
info: *const rocks_compaction_job_info_t,
files: *mut *const ::std::os::raw::c_char,
sizes: *mut usize,
);
}
extern "C" {
pub fn rocks_compaction_job_info_get_table_properties(
info: *const rocks_compaction_job_info_t,
) -> *mut rocks_table_props_collection_t;
}
extern "C" {
pub fn rocks_compaction_job_info_get_compaction_reason(
info: *const rocks_compaction_job_info_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_compaction_job_info_get_compression(info: *const rocks_compaction_job_info_t)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_compaction_job_info_get_stats(
info: *const rocks_compaction_job_info_t,
) -> *mut rocks_compaction_job_stats_t;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_elapsed_micros(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_input_records(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_input_files(stats: *const rocks_compaction_job_stats_t) -> usize;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_input_files_at_output_level(
stats: *const rocks_compaction_job_stats_t,
) -> usize;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_output_records(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_output_files(stats: *const rocks_compaction_job_stats_t) -> usize;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_is_manual_compaction(
stats: *const rocks_compaction_job_stats_t,
) -> ::std::os::raw::c_uchar;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_total_input_bytes(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_total_output_bytes(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_records_replaced(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_total_input_raw_key_bytes(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_total_input_raw_value_bytes(
stats: *const rocks_compaction_job_stats_t,
) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_input_deletion_records(stats: *const rocks_compaction_job_stats_t)
-> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_expired_deletion_records(
stats: *const rocks_compaction_job_stats_t,
) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_corrupt_keys(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_file_write_nanos(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_file_range_sync_nanos(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_file_fsync_nanos(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_file_prepare_write_nanos(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_smallest_output_key_prefix(
stats: *const rocks_compaction_job_stats_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_largest_output_key_prefix(
stats: *const rocks_compaction_job_stats_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_single_del_fallthru(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_compaction_job_stats_get_num_single_del_mismatch(stats: *const rocks_compaction_job_stats_t) -> u64;
}
extern "C" {
pub fn rocks_table_file_creation_info_get_file_size(info: *const rocks_table_file_creation_info_t) -> u64;
}
extern "C" {
pub fn rocks_table_file_creation_info_get_table_properties(
info: *const rocks_table_file_creation_info_t,
) -> *mut rocks_table_props_t;
}
extern "C" {
pub fn rocks_table_file_creation_info_get_status(
info: *const rocks_table_file_creation_info_t,
status: *mut *mut rocks_status_t,
);
}
extern "C" {
pub fn rocks_table_file_creation_info_get_brief_info(
info: *const rocks_table_file_creation_info_t,
) -> *const rocks_table_file_creation_brief_info_t;
}
extern "C" {
pub fn rocks_table_file_creation_brief_info_get_db_name(
info: *const rocks_table_file_creation_brief_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_file_creation_brief_info_get_cf_name(
info: *const rocks_table_file_creation_brief_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_file_creation_brief_info_get_file_path(
info: *const rocks_table_file_creation_brief_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_table_file_creation_brief_info_get_job_id(
info: *const rocks_table_file_creation_brief_info_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_table_file_creation_brief_info_get_reason(
info: *const rocks_table_file_creation_brief_info_t,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_mem_table_info_get_cf_name(
info: *const rocks_mem_table_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_mem_table_info_get_first_seqno(info: *const rocks_mem_table_info_t) -> u64;
}
extern "C" {
pub fn rocks_mem_table_info_get_earliest_seqno(info: *const rocks_mem_table_info_t) -> u64;
}
extern "C" {
pub fn rocks_mem_table_info_get_num_entries(info: *const rocks_mem_table_info_t) -> u64;
}
extern "C" {
pub fn rocks_mem_table_info_get_num_deletes(info: *const rocks_mem_table_info_t) -> u64;
}
extern "C" {
pub fn rocks_external_file_ingestion_info_get_cf_name(
info: *const rocks_external_file_ingestion_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_file_ingestion_info_get_external_file_path(
info: *const rocks_external_file_ingestion_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_file_ingestion_info_get_internal_file_path(
info: *const rocks_external_file_ingestion_info_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_external_file_ingestion_info_get_global_seqno(
info: *const rocks_external_file_ingestion_info_t,
) -> u64;
}
extern "C" {
pub fn rocks_external_file_ingestion_info_get_table_properties(
info: *const rocks_external_file_ingestion_info_t,
) -> *mut rocks_table_props_t;
}
extern "C" {
pub fn rocks_thread_status_destroy(status: *mut rocks_thread_status_t);
}
extern "C" {
pub fn rocks_thread_status_get_thread_id(status: *const rocks_thread_status_t) -> u64;
}
extern "C" {
pub fn rocks_thread_status_get_thread_type(status: *const rocks_thread_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_thread_status_get_db_name(
status: *const rocks_thread_status_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_thread_status_get_cf_name(
status: *const rocks_thread_status_t,
len: *mut usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rocks_thread_status_get_operation_type(status: *const rocks_thread_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_thread_status_get_op_elapsed_micros(status: *const rocks_thread_status_t) -> u64;
}
extern "C" {
pub fn rocks_thread_status_get_operation_stage(status: *const rocks_thread_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_thread_status_get_op_properties(status: *const rocks_thread_status_t, len: *mut usize) -> *const u64;
}
extern "C" {
pub fn rocks_thread_status_get_state_type(status: *const rocks_thread_status_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rocks_load_latest_options(
c_dbpath: *const ::std::os::raw::c_char,
db_options: *mut rocks_dboptions_t,
cf_descs_len: *mut usize,
status: *mut *mut rocks_status_t,
) -> *mut *mut rocks_column_family_descriptor_t;
}
extern "C" {
pub fn rocks_load_options_destroy_cf_descs(c_cf_descs: *mut *mut rocks_column_family_descriptor_t, len: usize);
}
extern "C" {
pub fn free(p: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn cxx_vector_slice_size(list: *const ::std::os::raw::c_void) -> usize;
}
extern "C" {
pub fn cxx_vector_slice_nth(list: *const ::std::os::raw::c_void, n: usize) -> *const ::std::os::raw::c_void;
}
extern "C" {
pub fn cxx_string_assign(s: *mut cxx_string_t, p: *const ::std::os::raw::c_char, len: usize);
}
extern "C" {
pub fn cxx_string_data(s: *const cxx_string_t) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn cxx_string_size(s: *const cxx_string_t) -> usize;
}
extern "C" {
pub fn cxx_string_destroy(s: *mut cxx_string_t);
}
extern "C" {
pub fn cxx_string_vector_create() -> *mut cxx_string_vector_t;
}
extern "C" {
pub fn cxx_string_vector_destory(v: *mut cxx_string_vector_t);
}
extern "C" {
pub fn cxx_string_vector_size(v: *mut cxx_string_vector_t) -> usize;
}
extern "C" {
pub fn cxx_string_vector_nth(v: *mut cxx_string_vector_t, index: usize) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn cxx_string_vector_nth_size(v: *mut cxx_string_vector_t, index: usize) -> usize;
}