pub struct EmbeddedConfig {
pub path: Option<PathBuf>,
pub storage_mode: StorageMode,
pub memory_limit: Option<usize>,
pub segment_config: SegmentConfigV2,
}Expand description
カラムナー関連設定。
Fields§
§path: Option<PathBuf>データパス(Disk モード時に必須)。
storage_mode: StorageModeカラムナーストレージモード。
memory_limit: Option<usize>InMemory モードのメモリ上限(バイト)。
segment_config: SegmentConfigV2セグメント設定。
Implementations§
Source§impl EmbeddedConfig
impl EmbeddedConfig
Sourcepub fn in_memory_with_limit(limit: usize) -> Self
pub fn in_memory_with_limit(limit: usize) -> Self
インメモリモードでメモリ上限を設定。
Sourcepub fn with_segment_config(self, cfg: SegmentConfigV2) -> Self
pub fn with_segment_config(self, cfg: SegmentConfigV2) -> Self
セグメント設定を上書き。
Trait Implementations§
Source§impl Clone for EmbeddedConfig
impl Clone for EmbeddedConfig
Source§fn clone(&self) -> EmbeddedConfig
fn clone(&self) -> EmbeddedConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddedConfig
impl RefUnwindSafe for EmbeddedConfig
impl Send for EmbeddedConfig
impl Sync for EmbeddedConfig
impl Unpin for EmbeddedConfig
impl UnwindSafe for EmbeddedConfig
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