pub struct UnityCatalog<C: UcClient, K: Clock> { /* private fields */ }Expand description
Implementations§
Source§impl<C: UcClient, K: Clock> UnityCatalog<C, K>
impl<C: UcClient, K: Clock> UnityCatalog<C, K>
Sourcepub fn new(
client: C,
client_id: impl Into<String>,
client_secret: impl Into<String>,
clock: K,
) -> Self
pub fn new( client: C, client_id: impl Into<String>, client_secret: impl Into<String>, clock: K, ) -> Self
Construct a backend from a transport, OAuth client credentials, and a clock.
Sourcepub fn with_authenticator(client: C, auth: Authenticator<K>) -> Self
pub fn with_authenticator(client: C, auth: Authenticator<K>) -> Self
Construct a backend from a pre-built Authenticator (e.g. with a
non-default token endpoint).
Trait Implementations§
Source§impl<C: UcClient, K: Clock> TableCatalog for UnityCatalog<C, K>
impl<C: UcClient, K: Clock> TableCatalog for UnityCatalog<C, K>
Source§fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
) -> Pin<Box<dyn Future<Output = Result<Option<TableState>, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn describe<'life0, 'life1, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
) -> Pin<Box<dyn Future<Output = Result<Option<TableState>, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn reconcile<'life0, 'life1, 'async_trait>(
&'life0 self,
desired: &'life1 DesiredTable,
_opts: ReconcileOptions,
) -> Pin<Box<dyn Future<Output = Result<ReconcileOutcome, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reconcile<'life0, 'life1, 'async_trait>(
&'life0 self,
desired: &'life1 DesiredTable,
_opts: ReconcileOptions,
) -> Pin<Box<dyn Future<Output = Result<ReconcileOutcome, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reconcile
table toward desired: describe it, compute a plan with
crate::reconcile::plan, and execute the plan. Idempotent — a
steady-state redeploy is a no-op. Read moreSource§fn register_sink<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
_sink: &'life2 SinkId,
) -> Pin<Box<dyn Future<Output = Result<(), CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn register_sink<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
_sink: &'life2 SinkId,
) -> Pin<Box<dyn Future<Output = Result<(), CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn vend_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
_access: Access,
) -> Pin<Box<dyn Future<Output = Result<VendedCredentials, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn vend_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
_access: Access,
) -> Pin<Box<dyn Future<Output = Result<VendedCredentials, CatalogError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Vend temporary, scoped credentials granting
access to table,
inheriting the caller’s privileges. Serves both the write path and the
Iceberg recovery read path. Read moreAuto Trait Implementations§
impl<C, K> !Freeze for UnityCatalog<C, K>
impl<C, K> RefUnwindSafe for UnityCatalog<C, K>where
C: RefUnwindSafe,
K: RefUnwindSafe,
impl<C, K> Send for UnityCatalog<C, K>
impl<C, K> Sync for UnityCatalog<C, K>
impl<C, K> Unpin for UnityCatalog<C, K>
impl<C, K> UnwindSafe for UnityCatalog<C, K>where
C: UnwindSafe,
K: UnwindSafe,
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