1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
use crate::engine::PanicEngine;
use engine_traits::{
DecodeProperties, Range, Result, TableProperties, TablePropertiesCollection,
TablePropertiesCollectionIter, TablePropertiesExt, TablePropertiesKey, UserCollectedProperties,
};
use std::ops::Deref;
impl TablePropertiesExt for PanicEngine {
type TablePropertiesCollection = PanicTablePropertiesCollection;
type TablePropertiesCollectionIter = PanicTablePropertiesCollectionIter;
type TablePropertiesKey = PanicTablePropertiesKey;
type TableProperties = PanicTableProperties;
type UserCollectedProperties = PanicUserCollectedProperties;
fn get_properties_of_tables_in_range(
&self,
cf: &str,
ranges: &[Range],
) -> Result<Self::TablePropertiesCollection> {
panic!()
}
}
pub struct PanicTablePropertiesCollection;
impl
TablePropertiesCollection<
PanicTablePropertiesCollectionIter,
PanicTablePropertiesKey,
PanicTableProperties,
PanicUserCollectedProperties,
> for PanicTablePropertiesCollection
{
fn iter(&self) -> PanicTablePropertiesCollectionIter {
panic!()
}
fn len(&self) -> usize {
panic!()
}
}
pub struct PanicTablePropertiesCollectionIter;
impl
TablePropertiesCollectionIter<
PanicTablePropertiesKey,
PanicTableProperties,
PanicUserCollectedProperties,
> for PanicTablePropertiesCollectionIter
{
}
impl Iterator for PanicTablePropertiesCollectionIter {
type Item = (PanicTablePropertiesKey, PanicTableProperties);
fn next(&mut self) -> Option<Self::Item> {
panic!()
}
}
pub struct PanicTablePropertiesKey;
impl TablePropertiesKey for PanicTablePropertiesKey {}
impl Deref for PanicTablePropertiesKey {
type Target = str;
fn deref(&self) -> &str {
panic!()
}
}
pub struct PanicTableProperties;
impl TableProperties<PanicUserCollectedProperties> for PanicTableProperties {
fn num_entries(&self) -> u64 {
panic!()
}
fn user_collected_properties(&self) -> PanicUserCollectedProperties {
panic!()
}
}
pub struct PanicUserCollectedProperties;
impl UserCollectedProperties for PanicUserCollectedProperties {
fn get(&self, index: &[u8]) -> Option<&[u8]> {
panic!()
}
fn len(&self) -> usize {
panic!()
}
}
impl DecodeProperties for PanicUserCollectedProperties {
fn decode(&self, k: &str) -> tikv_util::codec::Result<&[u8]> {
panic!()
}
}