Struct lance_core::io::object_store::ObjectStoreParams
source · pub struct ObjectStoreParams {
pub block_size: Option<usize>,
pub object_store: Option<(Arc<DynObjectStore>, Url)>,
pub commit_handler: Option<Arc<dyn CommitHandler>>,
pub s3_credentials_refresh_offset: Duration,
pub aws_credentials: Option<AwsCredentialProvider>,
pub object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>,
pub storage_options: Option<HashMap<String, String>>,
}Expand description
Parameters to create an ObjectStore
Fields§
§block_size: Option<usize>§object_store: Option<(Arc<DynObjectStore>, Url)>§commit_handler: Option<Arc<dyn CommitHandler>>§s3_credentials_refresh_offset: Duration§aws_credentials: Option<AwsCredentialProvider>§object_store_wrapper: Option<Arc<dyn WrappingObjectStore>>§storage_options: Option<HashMap<String, String>>Implementations§
source§impl ObjectStoreParams
impl ObjectStoreParams
sourcepub fn set_commit_lock<T: CommitLock + Send + Sync + 'static>(
&mut self,
lock: Arc<T>
)
pub fn set_commit_lock<T: CommitLock + Send + Sync + 'static>( &mut self, lock: Arc<T> )
Set a commit lock for the object store.
sourcepub fn with_aws_credentials(
aws_credentials: Option<AwsCredentialProvider>,
region: Option<String>
) -> Self
pub fn with_aws_credentials( aws_credentials: Option<AwsCredentialProvider>, region: Option<String> ) -> Self
Create a new instance of ObjectStoreParams based on the AWS credentials.
Trait Implementations§
source§impl Clone for ObjectStoreParams
impl Clone for ObjectStoreParams
source§fn clone(&self) -> ObjectStoreParams
fn clone(&self) -> ObjectStoreParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ObjectStoreParams
impl Debug for ObjectStoreParams
Auto Trait Implementations§
impl !RefUnwindSafe for ObjectStoreParams
impl Send for ObjectStoreParams
impl Sync for ObjectStoreParams
impl Unpin for ObjectStoreParams
impl !UnwindSafe for ObjectStoreParams
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