pub struct CreateViewBuilder<T: Materialization> { /* private fields */ }
Expand description
Builder for CreateView
.
Implementations§
Source§impl<T: Materialization + Clone> CreateViewBuilder<T>
impl<T: Materialization + Clone> CreateViewBuilder<T>
Sourcepub fn with_location<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn with_location<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
View base location
Sourcepub fn with_schema(&mut self, value: Schema) -> &mut Self
pub fn with_schema(&mut self, value: Schema) -> &mut Self
Schema of the view
Sourcepub fn with_view_version(&mut self, value: Version<T>) -> &mut Self
pub fn with_view_version(&mut self, value: Version<T>) -> &mut Self
Viersion of the view
Sourcepub fn with_properties(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn with_properties(&mut self, value: HashMap<String, String>) -> &mut Self
View properties
Sourcepub fn with_property<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn with_property<VALUE>(&mut self, item: VALUE) -> &mut Self
View properties
Sourcepub fn create(&self) -> Result<CreateView<T>, CreateViewBuilderError>
pub fn create(&self) -> Result<CreateView<T>, CreateViewBuilderError>
Source§impl CreateViewBuilder<Option<()>>
impl CreateViewBuilder<Option<()>>
Sourcepub async fn build(
&mut self,
namespace: &[String],
catalog: Arc<dyn Catalog>,
) -> Result<View, Error>
pub async fn build( &mut self, namespace: &[String], catalog: Arc<dyn Catalog>, ) -> Result<View, Error>
Builds and registers a new view in the catalog
§Arguments
namespace
- The namespace where the view will be createdcatalog
- The catalog where the view will be registered
§Returns
Ok(View)
- The newly created viewErr(Error)
- If view creation fails, e.g. due to missing name or catalog errors
This method finalizes the view configuration and registers it in the specified catalog. It automatically sets default namespace and catalog values if not already specified.
Trait Implementations§
Source§impl<T: Clone + Materialization> Clone for CreateViewBuilder<T>
impl<T: Clone + Materialization> Clone for CreateViewBuilder<T>
Source§fn clone(&self) -> CreateViewBuilder<T>
fn clone(&self) -> CreateViewBuilder<T>
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 moreSource§impl<T: Materialization + Clone> Default for CreateViewBuilder<T>
impl<T: Materialization + Clone> Default for CreateViewBuilder<T>
Auto Trait Implementations§
impl<T> Freeze for CreateViewBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for CreateViewBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for CreateViewBuilder<T>where
T: Send,
impl<T> Sync for CreateViewBuilder<T>where
T: Sync,
impl<T> Unpin for CreateViewBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for CreateViewBuilder<T>where
T: UnwindSafe,
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