pub struct OptionResolver {
pub base_uri: String,
pub hudi_options: HashMap<String, String>,
pub storage_options: HashMap<String, String>,
pub options: HashMap<String, String>,
}Expand description
Resolver for options including Hudi options, storage options, and generic options.
Fields§
§base_uri: String§hudi_options: HashMap<String, String>§storage_options: HashMap<String, String>§options: HashMap<String, String>Implementations§
Source§impl OptionResolver
impl OptionResolver
Sourcepub fn new(base_uri: &str) -> OptionResolver
pub fn new(base_uri: &str) -> OptionResolver
Create a new OptionResolver with the given base URI.
Sourcepub fn new_with_options<I, K, V>(base_uri: &str, options: I) -> OptionResolver
pub fn new_with_options<I, K, V>(base_uri: &str, options: I) -> OptionResolver
Create a new OptionResolver with the given base URI and options.
Sourcepub async fn resolve_options(&mut self) -> Result<(), CoreError>
pub async fn resolve_options(&mut self) -> Result<(), CoreError>
Resolve all options by combining the ones from hoodie.properties, user-provided options, env vars, and global Hudi configs. The precedence order is as follows:
- hoodie.properties
- Explicit options provided by the user
- Generic options provided by the user
- Env vars
- Global Hudi configs
[note] Error may occur when 1 and 2 have conflicts.
Trait Implementations§
Source§impl Clone for OptionResolver
impl Clone for OptionResolver
Source§fn clone(&self) -> OptionResolver
fn clone(&self) -> OptionResolver
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OptionResolver
impl RefUnwindSafe for OptionResolver
impl Send for OptionResolver
impl Sync for OptionResolver
impl Unpin for OptionResolver
impl UnwindSafe for OptionResolver
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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