pub struct VectorCandidateRow {
pub table_pk: String,
pub table_sk: String,
pub vector_json: String,
pub filter_json: String,
pub entry_bytes: i64,
}Expand description
One candidate row loaded from a vector shadow table for scoring by
SearchVectors, via StorageBackend::query_vector_candidates.
Carries no hash_value: scoping by HASH value happens in the query
itself, so every returned row already matches the scope.
Fields§
§table_pk: StringBase-table partition key string.
table_sk: StringBase-table sort key string.
vector_json: StringThe stored f32-truncated vector as a JSON array.
filter_json: StringINLINE_FILTER attribute values as a wire-shaped JSON object.
entry_bytes: i64The entry’s billable size, read back rather than recomputed. The projected item is deliberately absent: a search scores from the vector and the filter, and only the rows it returns need the item, so carrying it here made a scan of a large index materialise every entry to throw almost all of them away.
Trait Implementations§
Source§impl Clone for VectorCandidateRow
impl Clone for VectorCandidateRow
Auto Trait Implementations§
impl Freeze for VectorCandidateRow
impl RefUnwindSafe for VectorCandidateRow
impl Send for VectorCandidateRow
impl Sync for VectorCandidateRow
impl Unpin for VectorCandidateRow
impl UnsafeUnpin for VectorCandidateRow
impl UnwindSafe for VectorCandidateRow
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