pub struct TableWriterBuilder { /* private fields */ }Expand description
Builder for a standalone writable typed table shard.
Implementations§
Source§impl TableWriterBuilder
impl TableWriterBuilder
pub fn new(config: Config) -> Self
Sourcepub fn table_name(self, table_name: impl Into<String>) -> Self
pub fn table_name(self, table_name: impl Into<String>) -> Self
Select the physical column-family name for this typed table.
Sourcepub fn bucket(self, bucket: u16) -> Self
pub fn bucket(self, bucket: u16) -> Self
Own exactly one physical bucket using the stable database identity bucket-N.
The writer keeps a local-filesystem advisory lock for that database until its underlying
Db is dropped.
Sourcepub fn register_schema_transform<F, T>(
self,
transform_type: impl Into<String>,
factory: F,
) -> Result<Self>
pub fn register_schema_transform<F, T>( self, transform_type: impl Into<String>, factory: F, ) -> Result<Self>
Register a factory for persisted schema transform specifications before opening.
Sourcepub fn create(self, schema: TableSchema) -> Result<Table>
pub fn create(self, schema: TableSchema) -> Result<Table>
Initialize the bucket’s empty baseline, then create or reopen this standalone table.
A subsequent call starts again from that empty baseline, for overwrite semantics.
Sourcepub fn open(self) -> Result<Table>
pub fn open(self) -> Result<Table>
Initialize the bucket’s empty baseline, then open a writable catalog-bound table.
A subsequent call starts again from that empty baseline, for overwrite semantics.
Sourcepub fn resume_from_snapshot(self, snapshot_id: u64) -> Result<Table>
pub fn resume_from_snapshot(self, snapshot_id: u64) -> Result<Table>
Resume a writable shard from a selected snapshot boundary.
Auto Trait Implementations§
impl !RefUnwindSafe for TableWriterBuilder
impl !UnwindSafe for TableWriterBuilder
impl Freeze for TableWriterBuilder
impl Send for TableWriterBuilder
impl Sync for TableWriterBuilder
impl Unpin for TableWriterBuilder
impl UnsafeUnpin for TableWriterBuilder
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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