pub struct PartitionedWalWriter { /* private fields */ }Expand description
파티션 기반 WAL 쓰기 엔진
각 테이블이 독립적인 WAL 세그먼트를 가짐으로써 서로 다른 테이블의 쓰기가 동시에 진행될 수 있습니다.
Implementations§
Source§impl PartitionedWalWriter
impl PartitionedWalWriter
Sourcepub fn with_defaults(wal_dir: PathBuf) -> DbxResult<Self>
pub fn with_defaults(wal_dir: PathBuf) -> DbxResult<Self>
기본 설정 (플러시 임계값: 100)
Sourcepub fn append_batch(&self, records: Vec<WalRecord>) -> DbxResult<Vec<u64>>
pub fn append_batch(&self, records: Vec<WalRecord>) -> DbxResult<Vec<u64>>
여러 레코드를 한번에 추가 (배치 쓰기)
Sourcepub fn partition_count(&self) -> usize
pub fn partition_count(&self) -> usize
파티션 수 조회
Sourcepub fn buffered_count(&self) -> usize
pub fn buffered_count(&self) -> usize
버퍼에 있는 총 레코드 수
Sourcepub fn current_sequence(&self) -> u64
pub fn current_sequence(&self) -> u64
현재 시퀀스 번호
Auto Trait Implementations§
impl !Freeze for PartitionedWalWriter
impl !RefUnwindSafe for PartitionedWalWriter
impl Send for PartitionedWalWriter
impl Sync for PartitionedWalWriter
impl Unpin for PartitionedWalWriter
impl UnsafeUnpin for PartitionedWalWriter
impl UnwindSafe for PartitionedWalWriter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more