pub struct DatabricksFactory { /* private fields */ }Expand description
Opens Zerobus Arrow-Flight streams against a Databricks workspace.
Implementations§
Source§impl DatabricksFactory
impl DatabricksFactory
Sourcepub fn new(
zerobus_endpoint: impl Into<String>,
unity_catalog_url: impl Into<String>,
max_inflight_requests: usize,
recovery: bool,
) -> Result<Self, ZerobusSinkError>
pub fn new( zerobus_endpoint: impl Into<String>, unity_catalog_url: impl Into<String>, max_inflight_requests: usize, recovery: bool, ) -> Result<Self, ZerobusSinkError>
Build a factory for the given Zerobus and Unity Catalog endpoints.
§Errors
ZerobusSinkError if the SDK cannot be constructed (bad endpoint, TLS).
Trait Implementations§
Source§impl Debug for DatabricksFactory
impl Debug for DatabricksFactory
Source§impl TransportFactory for DatabricksFactory
impl TransportFactory for DatabricksFactory
Source§fn open<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
schema: Arc<OurSchema>,
creds: &'life2 VendedCredentials,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ZerobusTransport>, ZerobusSinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn open<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table: &'life1 TableRef,
schema: Arc<OurSchema>,
creds: &'life2 VendedCredentials,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn ZerobusTransport>, ZerobusSinkError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for DatabricksFactory
impl !RefUnwindSafe for DatabricksFactory
impl Send for DatabricksFactory
impl Sync for DatabricksFactory
impl Unpin for DatabricksFactory
impl !UnwindSafe for DatabricksFactory
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].