pub struct IndexVersionManager { /* private fields */ }Expand description
인덱스 버전 관리자
인덱스를 무중단으로 재구축합니다:
- 새 버전 생성 (Building 상태)
- 백그라운드에서 인덱스 빌드
- Ready 상태로 전환 → 이전 버전 제거
Implementations§
Source§impl IndexVersionManager
impl IndexVersionManager
pub fn new() -> Self
Sourcepub fn create_index(
&self,
name: &str,
table: &str,
columns: Vec<String>,
index_type: IndexType,
) -> DbxResult<u64>
pub fn create_index( &self, name: &str, table: &str, columns: Vec<String>, index_type: IndexType, ) -> DbxResult<u64>
인덱스 생성
Sourcepub fn start_reindex(
&self,
name: &str,
columns: Vec<String>,
index_type: IndexType,
) -> DbxResult<u64>
pub fn start_reindex( &self, name: &str, columns: Vec<String>, index_type: IndexType, ) -> DbxResult<u64>
무중단 REINDEX 시작 (새 버전을 Building 상태로 생성)
Sourcepub fn complete_reindex(&self, name: &str, version: u64) -> DbxResult<()>
pub fn complete_reindex(&self, name: &str, version: u64) -> DbxResult<()>
REINDEX 완료 (Building → Ready, 이전 버전 비활성화)
Sourcepub fn get_active(&self, name: &str) -> DbxResult<IndexMeta>
pub fn get_active(&self, name: &str) -> DbxResult<IndexMeta>
현재 활성 인덱스 메타데이터 조회
Sourcepub fn drop_index(&self, name: &str) -> DbxResult<()>
pub fn drop_index(&self, name: &str) -> DbxResult<()>
인덱스 삭제
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IndexVersionManager
impl RefUnwindSafe for IndexVersionManager
impl Send for IndexVersionManager
impl Sync for IndexVersionManager
impl Unpin for IndexVersionManager
impl UnsafeUnpin for IndexVersionManager
impl UnwindSafe for IndexVersionManager
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