pub struct UnityObjectStoreFactoryBuilder { /* private fields */ }Expand description
Builder for UnityObjectStoreFactory.
Implementations§
Source§impl UnityObjectStoreFactoryBuilder
impl UnityObjectStoreFactoryBuilder
pub fn new() -> Self
Sourcepub fn with_uri(self, uri: impl Into<String>) -> Self
pub fn with_uri(self, uri: impl Into<String>) -> Self
Set the URI of the Unity Catalog API
(e.g. https://<workspace>/api/2.1/unity-catalog/).
Sourcepub fn with_token(self, token: impl Into<Option<String>>) -> Self
pub fn with_token(self, token: impl Into<Option<String>>) -> Self
Set the access token used for bearer authentication.
Accepts both String and Option<String> — pass None to clear
a previously-set token (e.g. when reusing the builder).
Sourcepub fn with_allow_unauthenticated(self, allow_unauthenticated: bool) -> Self
pub fn with_allow_unauthenticated(self, allow_unauthenticated: bool) -> Self
Allow construction without any authentication credentials.
Only intended for local development against an unauthenticated OSS Unity Catalog server — there should not be any unauthenticated UC servers in production deployments.
Sourcepub fn with_aws_region(self, aws_region: impl Into<Option<String>>) -> Self
pub fn with_aws_region(self, aws_region: impl Into<Option<String>>) -> Self
Override the AWS region used for vended AWS credentials.
When unset the factory falls back to (in order):
- The
AWS_REGIONenvironment variable. - The
object_storedefault region (us-east-1).
This is a stop-gap until the server reliably returns region info alongside the credential.
Sourcepub fn with_io_runtime(self, handle: impl Into<Option<Handle>>) -> Self
pub fn with_io_runtime(self, handle: impl Into<Option<Handle>>) -> Self
Route all HTTP I/O onto a dedicated tokio runtime.
In production DataFusion deployments it is common to segregate network I/O onto a separate runtime so that CPU-bound query work on the main runtime cannot starve object-store requests (and vice versa). When a handle is supplied here:
- every cloud object store (
AmazonS3Builder,MicrosoftAzureBuilder,GoogleCloudStorageBuilder) is built with aSpawnedReqwestConnectorthat spawns its requests on this runtime; and - the credential-vending [
CloudClient] is configured with the same runtime via [CloudClient::with_runtime].
When unset (the default), I/O runs on the ambient runtime — current behaviour, fully backwards compatible.
Pass None to clear a previously set handle (e.g. when reusing the
builder).
Not available on wasm32: the browser has a single-threaded executor
and no tokio runtime to route I/O onto.
pub async fn build(self) -> Result<UnityObjectStoreFactory>
Trait Implementations§
Source§impl Clone for UnityObjectStoreFactoryBuilder
impl Clone for UnityObjectStoreFactoryBuilder
Source§fn clone(&self) -> UnityObjectStoreFactoryBuilder
fn clone(&self) -> UnityObjectStoreFactoryBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for UnityObjectStoreFactoryBuilder
impl Default for UnityObjectStoreFactoryBuilder
Source§fn default() -> UnityObjectStoreFactoryBuilder
fn default() -> UnityObjectStoreFactoryBuilder
Auto Trait Implementations§
impl Freeze for UnityObjectStoreFactoryBuilder
impl RefUnwindSafe for UnityObjectStoreFactoryBuilder
impl Send for UnityObjectStoreFactoryBuilder
impl Sync for UnityObjectStoreFactoryBuilder
impl Unpin for UnityObjectStoreFactoryBuilder
impl UnsafeUnpin for UnityObjectStoreFactoryBuilder
impl UnwindSafe for UnityObjectStoreFactoryBuilder
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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