1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
use crate::db_options::PanicTitanDBOptions;
use crate::engine::PanicEngine;
use engine_traits::{CFOptionsExt, Result};
use engine_traits::{ColumnFamilyOptions, SstPartitionerFactory};
impl CFOptionsExt for PanicEngine {
type ColumnFamilyOptions = PanicColumnFamilyOptions;
fn get_options_cf(&self, cf: &str) -> Result<Self::ColumnFamilyOptions> {
panic!()
}
fn set_options_cf(&self, cf: &str, options: &[(&str, &str)]) -> Result<()> {
panic!()
}
}
pub struct PanicColumnFamilyOptions;
impl ColumnFamilyOptions for PanicColumnFamilyOptions {
type TitanDBOptions = PanicTitanDBOptions;
fn new() -> Self {
panic!()
}
fn get_max_write_buffer_number(&self) -> u32 {
panic!()
}
fn get_level_zero_slowdown_writes_trigger(&self) -> u32 {
panic!()
}
fn get_level_zero_stop_writes_trigger(&self) -> u32 {
panic!()
}
fn set_level_zero_file_num_compaction_trigger(&mut self, v: i32) {
panic!()
}
fn get_soft_pending_compaction_bytes_limit(&self) -> u64 {
panic!()
}
fn get_hard_pending_compaction_bytes_limit(&self) -> u64 {
panic!()
}
fn get_block_cache_capacity(&self) -> u64 {
panic!()
}
fn set_block_cache_capacity(&self, capacity: u64) -> std::result::Result<(), String> {
panic!()
}
fn set_titandb_options(&mut self, opts: &Self::TitanDBOptions) {
panic!()
}
fn get_target_file_size_base(&self) -> u64 {
panic!()
}
fn set_disable_auto_compactions(&mut self, v: bool) {
panic!()
}
fn get_disable_auto_compactions(&self) -> bool {
panic!()
}
fn set_sst_partitioner_factory<F: SstPartitionerFactory>(&mut self, factory: F) {
panic!()
}
}