Skip to main content

ExtObjectStoreBuilder

Trait ExtObjectStoreBuilder 

Source
pub trait ExtObjectStoreBuilder {
    // Required method
    fn build(
        &self,
        url: &PlRefPath,
        options: Option<&CloudOptions>,
    ) -> Result<Arc<dyn ObjectStore + Send + Sync>, PolarsError>;

    // Provided method
    fn stable_cache_key(
        &self,
        _url: &PlRefPath,
        _options: Option<&CloudOptions>,
    ) -> Option<Vec<u8>> { ... }
}
Available on crate feature polars-io only.
Expand description

Trait for external ObjectStore builder (e.g., for HDFS). Unstable.

Required Methods§

Source

fn build( &self, url: &PlRefPath, options: Option<&CloudOptions>, ) -> Result<Arc<dyn ObjectStore + Send + Sync>, PolarsError>

Build new object_store.

Provided Methods§

Source

fn stable_cache_key( &self, _url: &PlRefPath, _options: Option<&CloudOptions>, ) -> Option<Vec<u8>>

Return a stable cache key for this store. Defaults to None, which uses the default key (URL authority + serialised CloudOptions).

Implementors§