pub struct SchemaRegistry { /* private fields */ }Expand description
The schema registry takes care of storing and retrieving table schemas from memory.
Implementations§
Source§impl SchemaRegistry
impl SchemaRegistry
Sourcepub fn load() -> MemoryResult<Self>
pub fn load() -> MemoryResult<Self>
Load the schema registry from memory.
Sourcepub fn register_table<TS>(&mut self) -> MemoryResult<TableRegistryPage>where
TS: TableSchema,
pub fn register_table<TS>(&mut self) -> MemoryResult<TableRegistryPage>where
TS: TableSchema,
Registers a table and allocates it registry page.
The TableSchema type parameter is used to get the TableSchema::fingerprint of the table schema.
Sourcepub fn table_registry_page<TS>(&self) -> Option<TableRegistryPage>where
TS: TableSchema,
pub fn table_registry_page<TS>(&self) -> Option<TableRegistryPage>where
TS: TableSchema,
Returns the table registry page for a given table schema.
Trait Implementations§
Source§impl Clone for SchemaRegistry
impl Clone for SchemaRegistry
Source§fn clone(&self) -> SchemaRegistry
fn clone(&self) -> SchemaRegistry
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 moreSource§impl Debug for SchemaRegistry
impl Debug for SchemaRegistry
Source§impl Default for SchemaRegistry
impl Default for SchemaRegistry
Source§fn default() -> SchemaRegistry
fn default() -> SchemaRegistry
Returns the “default value” for a type. Read more
Source§impl PartialEq for SchemaRegistry
impl PartialEq for SchemaRegistry
impl Eq for SchemaRegistry
impl StructuralPartialEq for SchemaRegistry
Auto Trait Implementations§
impl Freeze for SchemaRegistry
impl RefUnwindSafe for SchemaRegistry
impl Send for SchemaRegistry
impl Sync for SchemaRegistry
impl Unpin for SchemaRegistry
impl UnwindSafe for SchemaRegistry
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