pub struct MetadataRegistry {
pub tables: Arc<DashMap<String, Arc<TableMeta>>>,
}Expand description
글로벌 파티션 및 스토리지 계층 상태 캐시 시스템. LifecycleWorker 가 동기화하며 Optimizer와 분산 스케줄러가 구독합니다.
Fields§
§tables: Arc<DashMap<String, Arc<TableMeta>>>Implementations§
Source§impl MetadataRegistry
impl MetadataRegistry
pub fn new() -> Self
pub fn get_table(&self, table_name: &str) -> Option<Arc<TableMeta>>
pub fn register_table(&self, table_name: String, schema: Arc<Schema>)
Sourcepub fn update_partition(
&self,
table_name: &str,
partition_id: String,
meta: PartitionMeta,
)
pub fn update_partition( &self, table_name: &str, partition_id: String, meta: PartitionMeta, )
특정 파티션의 위치와 계층 상태를 업데이트합니다. LifecycleWorker 컴팩션 이후 호출됩니다.
Sourcepub fn drop_partition(&self, table_name: &str, partition_id: &str)
pub fn drop_partition(&self, table_name: &str, partition_id: &str)
해당 파티션을 스캔 범위에서 완전 제거합니다. (삭제나 Time Travel, 만료 등으로 파기될 때)
Trait Implementations§
Source§impl Clone for MetadataRegistry
impl Clone for MetadataRegistry
Source§fn clone(&self) -> MetadataRegistry
fn clone(&self) -> MetadataRegistry
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 MetadataRegistry
impl !RefUnwindSafe for MetadataRegistry
impl Send for MetadataRegistry
impl Sync for MetadataRegistry
impl Unpin for MetadataRegistry
impl UnsafeUnpin for MetadataRegistry
impl !UnwindSafe for MetadataRegistry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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