pub struct HdfsObjectStoreBuilder { /* private fields */ }
Expand description
Builder for creating an HdfsObjectStore
Implementations§
Source§impl HdfsObjectStoreBuilder
impl HdfsObjectStoreBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new HdfsObjectStoreBuilder
Sourcepub fn with_url(self, url: impl Into<String>) -> Self
pub fn with_url(self, url: impl Into<String>) -> Self
Set the URL to connect to. Can be the address of a single NameNode, or a logical NameService
Sourcepub fn with_config(
self,
config: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>,
) -> Self
pub fn with_config( self, config: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>, ) -> Self
Set configs to use for the client. The provided configs will override any found in the default config files loaded
pub fn with_io_runtime(self, runtime: Handle) -> Self
Sourcepub fn build(self) -> Result<HdfsObjectStore>
pub fn build(self) -> Result<HdfsObjectStore>
Create the HdfsObjectStore] instance from the provided settings
Trait Implementations§
Source§impl Default for HdfsObjectStoreBuilder
impl Default for HdfsObjectStoreBuilder
Source§fn default() -> HdfsObjectStoreBuilder
fn default() -> HdfsObjectStoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for HdfsObjectStoreBuilder
impl RefUnwindSafe for HdfsObjectStoreBuilder
impl Send for HdfsObjectStoreBuilder
impl Sync for HdfsObjectStoreBuilder
impl Unpin for HdfsObjectStoreBuilder
impl UnwindSafe for HdfsObjectStoreBuilder
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
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