pub struct CatalogConnectConfig {
pub uri: String,
pub storage_options: Option<AHashMap<String, String>>,
pub batch_size: Option<usize>,
pub compression: Option<CatalogCompression>,
pub max_row_group_size: Option<usize>,
pub params: Option<Params>,
}Expand description
Minimal connection-config supplied to CatalogFactory.
Fields§
§uri: StringResolved URI for the catalog backend (e.g. file:///tmp/cat, s3://bucket/cat).
storage_options: Option<AHashMap<String, String>>Optional storage-backend options (credentials, region, …) passed to object_store.
batch_size: Option<usize>The number of rows per batch the catalog reads and writes.
compression: Option<CatalogCompression>The compression codec of written data files.
max_row_group_size: Option<usize>The maximum number of rows per written row group.
params: Option<Params>Backend-specific catalog parameters, which a factory validates with
validate_catalog_params.
Implementations§
Source§impl CatalogConnectConfig
impl CatalogConnectConfig
Sourcepub fn new(
uri: impl Into<String>,
storage_options: Option<AHashMap<String, String>>,
) -> Self
pub fn new( uri: impl Into<String>, storage_options: Option<AHashMap<String, String>>, ) -> Self
Creates a new CatalogConnectConfig.
Sourcepub fn from_path_and_protocol(
path: &str,
fs_protocol: Option<&str>,
storage_options: Option<AHashMap<String, String>>,
) -> Self
pub fn from_path_and_protocol( path: &str, fs_protocol: Option<&str>, storage_options: Option<AHashMap<String, String>>, ) -> Self
Builds a CatalogConnectConfig from path + optional fs_protocol.
A file protocol with a Windows drive path becomes file:///C:/....
A path that already contains :// is left unchanged.
Trait Implementations§
Source§impl Clone for CatalogConnectConfig
impl Clone for CatalogConnectConfig
Auto Trait Implementations§
impl Freeze for CatalogConnectConfig
impl RefUnwindSafe for CatalogConnectConfig
impl Send for CatalogConnectConfig
impl Sync for CatalogConnectConfig
impl Unpin for CatalogConnectConfig
impl UnsafeUnpin for CatalogConnectConfig
impl UnwindSafe for CatalogConnectConfig
Blanket Implementations§
impl<T> Allocation for T
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<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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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