pub struct ArtifactDerivationLedger {
pub derivations: Vec<ArtifactDerivation>,
}Expand description
Validated immutable derivation-edge table.
Fields§
§derivations: Vec<ArtifactDerivation>Edges ordered by (recorded_at, derivation_uuid).
Implementations§
Source§impl ArtifactDerivationLedger
impl ArtifactDerivationLedger
Sourcepub fn new(derivations: Vec<ArtifactDerivation>) -> Result<Self, KnowledgeError>
pub fn new(derivations: Vec<ArtifactDerivation>) -> Result<Self, KnowledgeError>
Validate, sort, and construct a derivation table.
Sourcepub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
pub fn merge(&self, staged: &Self) -> Result<Self, KnowledgeError>
Merge staged rows into an existing ledger.
Sourcepub fn batch(&self) -> Result<RecordBatch, KnowledgeError>
pub fn batch(&self) -> Result<RecordBatch, KnowledgeError>
Encode the authoritative Arrow batch.
Sourcepub fn from_batches(batches: &[RecordBatch]) -> Result<Self, KnowledgeError>
pub fn from_batches(batches: &[RecordBatch]) -> Result<Self, KnowledgeError>
Decode one or more Arrow batches.
Trait Implementations§
Source§impl Clone for ArtifactDerivationLedger
impl Clone for ArtifactDerivationLedger
Source§impl Debug for ArtifactDerivationLedger
impl Debug for ArtifactDerivationLedger
Source§impl Default for ArtifactDerivationLedger
impl Default for ArtifactDerivationLedger
impl Eq for ArtifactDerivationLedger
Source§impl PartialEq for ArtifactDerivationLedger
impl PartialEq for ArtifactDerivationLedger
impl StructuralPartialEq for ArtifactDerivationLedger
Auto Trait Implementations§
impl Freeze for ArtifactDerivationLedger
impl RefUnwindSafe for ArtifactDerivationLedger
impl Send for ArtifactDerivationLedger
impl Sync for ArtifactDerivationLedger
impl Unpin for ArtifactDerivationLedger
impl UnsafeUnpin for ArtifactDerivationLedger
impl UnwindSafe for ArtifactDerivationLedger
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.