|
|
|
@ -3612,11 +3612,20 @@ void rocksdb_readoptions_set_verify_checksums( |
|
|
|
|
opt->rep.verify_checksums = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_verify_checksums( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.verify_checksums; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_fill_cache( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.fill_cache = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_fill_cache(rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.fill_cache; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_snapshot( |
|
|
|
|
rocksdb_readoptions_t* opt, |
|
|
|
|
const rocksdb_snapshot_t* snap) { |
|
|
|
@ -3653,11 +3662,19 @@ void rocksdb_readoptions_set_read_tier( |
|
|
|
|
opt->rep.read_tier = static_cast<ROCKSDB_NAMESPACE::ReadTier>(v); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int rocksdb_readoptions_get_read_tier(rocksdb_readoptions_t* opt) { |
|
|
|
|
return static_cast<int>(opt->rep.read_tier); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_tailing( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.tailing = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_tailing(rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.tailing; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_managed( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.managed = v; |
|
|
|
@ -3668,37 +3685,70 @@ void rocksdb_readoptions_set_readahead_size( |
|
|
|
|
opt->rep.readahead_size = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
size_t rocksdb_readoptions_get_readahead_size(rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.readahead_size; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_prefix_same_as_start( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.prefix_same_as_start = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_prefix_same_as_start( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.prefix_same_as_start; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_pin_data(rocksdb_readoptions_t* opt, |
|
|
|
|
unsigned char v) { |
|
|
|
|
opt->rep.pin_data = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_pin_data(rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.pin_data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_total_order_seek(rocksdb_readoptions_t* opt, |
|
|
|
|
unsigned char v) { |
|
|
|
|
opt->rep.total_order_seek = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_total_order_seek( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.total_order_seek; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_max_skippable_internal_keys( |
|
|
|
|
rocksdb_readoptions_t* opt, |
|
|
|
|
uint64_t v) { |
|
|
|
|
opt->rep.max_skippable_internal_keys = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint64_t rocksdb_readoptions_get_max_skippable_internal_keys( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.max_skippable_internal_keys; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_background_purge_on_iterator_cleanup( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.background_purge_on_iterator_cleanup = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_background_purge_on_iterator_cleanup( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.background_purge_on_iterator_cleanup; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void rocksdb_readoptions_set_ignore_range_deletions( |
|
|
|
|
rocksdb_readoptions_t* opt, unsigned char v) { |
|
|
|
|
opt->rep.ignore_range_deletions = v; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
unsigned char rocksdb_readoptions_get_ignore_range_deletions( |
|
|
|
|
rocksdb_readoptions_t* opt) { |
|
|
|
|
return opt->rep.ignore_range_deletions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
rocksdb_writeoptions_t* rocksdb_writeoptions_create() { |
|
|
|
|
return new rocksdb_writeoptions_t; |
|
|
|
|
} |
|
|
|
|