pub struct WapMaterializer {
pub target_table: String,
pub wap_branch: String,
pub staging_dir: PathBuf,
}Expand description
Write-Audit-Publish (WAP) Materializer — audit helpers (catalog branch publish later).
Fields§
§target_table: String§wap_branch: String§staging_dir: PathBufImplementations§
Source§impl WapMaterializer
impl WapMaterializer
pub fn new( target_table: impl Into<String>, wap_branch: impl Into<String>, staging_dir: impl AsRef<Path>, ) -> Self
pub async fn write_stage(&self, batches: &[RecordBatch]) -> Result<usize>
pub fn audit_stage( &self, batches: &[RecordBatch], assertions: &[Assertion], ) -> Result<ValidationResult>
pub async fn publish_stage( &self, audit_result: &ValidationResult, ) -> Result<WapStatus>
Auto Trait Implementations§
impl Freeze for WapMaterializer
impl RefUnwindSafe for WapMaterializer
impl Send for WapMaterializer
impl Sync for WapMaterializer
impl Unpin for WapMaterializer
impl UnsafeUnpin for WapMaterializer
impl UnwindSafe for WapMaterializer
Blanket Implementations§
impl<T> Allocation for T
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