pub struct ColdConfig {
pub local_dir: String,
pub s3_bucket: Option<String>,
pub s3_prefix: Option<String>,
pub s3_region: Option<String>,
pub compress_level: i32,
pub partition_count: usize,
pub top_partitions: usize,
}Expand description
冷层配置 —— 持久化存储的参数
Fields§
§local_dir: String本地存储目录
s3_bucket: Option<String>S3桶(可选)
s3_prefix: Option<String>S3键前缀
s3_region: Option<String>S3区域
compress_level: i32zstd压缩等级 (1-22)
partition_count: usize分区数(K-Means聚类的K值)
top_partitions: usize粗筛时检索的分区数
Trait Implementations§
Source§impl Clone for ColdConfig
impl Clone for ColdConfig
Source§fn clone(&self) -> ColdConfig
fn clone(&self) -> ColdConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColdConfig
impl Debug for ColdConfig
Source§impl Default for ColdConfig
impl Default for ColdConfig
Source§impl<'de> Deserialize<'de> for ColdConfig
impl<'de> Deserialize<'de> for ColdConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColdConfig
impl RefUnwindSafe for ColdConfig
impl Send for ColdConfig
impl Sync for ColdConfig
impl Unpin for ColdConfig
impl UnsafeUnpin for ColdConfig
impl UnwindSafe for ColdConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more