pub enum WalOp {
CreateCollection {
collection_id: CollectionId,
name: String,
descriptor: Vec<u8>,
},
DropCollection {
collection_id: CollectionId,
},
Upsert {
collection_id: CollectionId,
external_id: String,
vector: Vec<u8>,
payload: Vec<u8>,
},
Delete {
collection_id: CollectionId,
external_id: String,
},
Checkpoint {
last_checkpointed_lsn: Lsn,
manifest_version: u64,
},
}Expand description
A single logical mutation recorded in the WAL.
The vector and payload are stored as opaque bytes: the engine validates and interprets them (the descriptor fixes the vector dtype/dim; payloads are validated JSON), keeping the log a dumb, stable durability primitive.
Variants§
CreateCollection
Create a collection with the given id, name, and postcard-encoded descriptor.
Fields
§
collection_id: CollectionIdIdentifier assigned to the new collection.
DropCollection
Drop a collection and all of its data.
Fields
§
collection_id: CollectionIdIdentifier of the collection to drop.
Upsert
Insert or replace a point.
Fields
§
collection_id: CollectionIdOwning collection.
Delete
Delete a point by external id.
Fields
§
collection_id: CollectionIdOwning collection.
Checkpoint
Record that state up to last_checkpointed_lsn is durable in segments
referenced by manifest version manifest_version.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WalOp
impl<'de> Deserialize<'de> for WalOp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalOp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WalOp
Source§impl Serialize for WalOp
impl Serialize for WalOp
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WalOp
Auto Trait Implementations§
impl Freeze for WalOp
impl RefUnwindSafe for WalOp
impl Send for WalOp
impl Sync for WalOp
impl Unpin for WalOp
impl UnsafeUnpin for WalOp
impl UnwindSafe for WalOp
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