pub struct IngestDocument { /* private fields */ }Expand description
One owned vector mutation supplied to an ingest batch.
Implementations§
Source§impl IngestDocument
impl IngestDocument
Sourcepub fn new(version: DocumentVersion, vector: Vec<f32>) -> Self
pub fn new(version: DocumentVersion, vector: Vec<f32>) -> Self
Constructs one document upsert.
Sourcepub const fn with_timestamp(self, timestamp: i64) -> Self
pub const fn with_timestamp(self, timestamp: i64) -> Self
Assigns the canonical ts clustering-key value.
Sourcepub fn with_metadata(self, metadata: Vec<u8>) -> Self
pub fn with_metadata(self, metadata: Vec<u8>) -> Self
Assigns opaque stored metadata that must remain physically purgeable.
Sourcepub fn with_text(self, text: impl Into<String>) -> Self
pub fn with_text(self, text: impl Into<String>) -> Self
Assigns the UTF-8 body indexed by the store’s frozen text analyzer.
Sourcepub fn with_columns(self, columns: Vec<(ColumnId, PredicateValue)>) -> Self
pub fn with_columns(self, columns: Vec<(ColumnId, PredicateValue)>) -> Self
Assigns typed user-column values keyed by the store schema.
Sourcepub const fn version(&self) -> DocumentVersion
pub const fn version(&self) -> DocumentVersion
Returns the document/revision idempotency key.
Sourcepub fn columns(&self) -> &[(ColumnId, PredicateValue)]
pub fn columns(&self) -> &[(ColumnId, PredicateValue)]
Returns the typed schema-column values in caller order.
Trait Implementations§
Source§impl Clone for IngestDocument
impl Clone for IngestDocument
Source§fn clone(&self) -> IngestDocument
fn clone(&self) -> IngestDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IngestDocument
impl Debug for IngestDocument
Source§impl PartialEq for IngestDocument
impl PartialEq for IngestDocument
impl StructuralPartialEq for IngestDocument
Auto Trait Implementations§
impl Freeze for IngestDocument
impl RefUnwindSafe for IngestDocument
impl Send for IngestDocument
impl Sync for IngestDocument
impl Unpin for IngestDocument
impl UnsafeUnpin for IngestDocument
impl UnwindSafe for IngestDocument
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