Struct datafusion_objectstore_s3::object_store::s3::S3FileSystem
source · [−]pub struct S3FileSystem { /* private fields */ }Expand description
ObjectStore implementation for the Amazon S3 API
Implementations
sourceimpl S3FileSystem
impl S3FileSystem
sourcepub async fn new(
credentials_provider: Option<SharedCredentialsProvider>,
region: Option<Region>,
endpoint: Option<Endpoint>,
retry_config: Option<RetryConfig>,
sleep: Option<Arc<dyn AsyncSleep>>,
timeout_config: Option<Config>
) -> Self
pub async fn new(
credentials_provider: Option<SharedCredentialsProvider>,
region: Option<Region>,
endpoint: Option<Endpoint>,
retry_config: Option<RetryConfig>,
sleep: Option<Arc<dyn AsyncSleep>>,
timeout_config: Option<Config>
) -> Self
Create new ObjectStore
sourceimpl S3FileSystem
impl S3FileSystem
Trait Implementations
sourceimpl Debug for S3FileSystem
impl Debug for S3FileSystem
sourceimpl ObjectStore for S3FileSystem
impl ObjectStore for S3FileSystem
sourcefn list_file<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FileMetaStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_file<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<FileMetaStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns all the files in path prefix
sourcefn list_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
_prefix: &'life1 str,
_delimiter: Option<String>
) -> Pin<Box<dyn Future<Output = Result<ListEntryStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_dir<'life0, 'life1, 'async_trait>(
&'life0 self,
_prefix: &'life1 str,
_delimiter: Option<String>
) -> Pin<Box<dyn Future<Output = Result<ListEntryStream>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns all the files in prefix if the prefix is already a leaf dir,
or all paths between the prefix and the first occurrence of the delimiter if it is provided. Read more
sourcefn file_reader(&self, file: SizedFile) -> Result<Arc<dyn ObjectReader>>
fn file_reader(&self, file: SizedFile) -> Result<Arc<dyn ObjectReader>>
Get object reader for one file
sourcefn list_file_with_suffix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
suffix: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn list_file_with_suffix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prefix: &'life1 str,
suffix: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Calls list_file with a suffix filter
sourcefn glob_file<'life0, 'life1, 'async_trait>(
&'life0 self,
glob_pattern: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn glob_file<'life0, 'life1, 'async_trait>(
&'life0 self,
glob_pattern: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Returns all the files matching glob_pattern
sourcefn glob_file_with_suffix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
glob_pattern: &'life1 str,
suffix: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn glob_file_with_suffix<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
glob_pattern: &'life1 str,
suffix: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<FileMeta, Error>> + Sync + Send + 'static, Global>>, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Calls glob_file with a suffix filter
Auto Trait Implementations
impl !RefUnwindSafe for S3FileSystem
impl Send for S3FileSystem
impl Sync for S3FileSystem
impl Unpin for S3FileSystem
impl !UnwindSafe for S3FileSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more