pub struct PointFields(/* private fields */);Expand description
Record properties read with one point read per typed definition instead
of rebuilding the record (READ-1: sorting 667K matches, or checking an
unindexed age < 25 on them, rebuilt every one). Covers scalar record
properties only; Self::resolve answers None for a system field or a
property stored as an array anywhere, and the caller rebuilds the record.
Implementations§
Source§impl PointFields
impl PointFields
Sourcepub fn resolve<'n>(
snap: &QuerySnapshot,
tenant: TenantId,
names: impl IntoIterator<Item = &'n str>,
) -> Result<Option<Self>, QueryError>
pub fn resolve<'n>( snap: &QuerySnapshot, tenant: TenantId, names: impl IntoIterator<Item = &'n str>, ) -> Result<Option<Self>, QueryError>
Point reads for names, each row keyed by the name as given; None
when one of them needs the whole record.
§Errors
Returns storage read errors from the property catalog.
Sourcepub fn row(
&self,
snap: &QuerySnapshot,
tenant: TenantId,
ord: u64,
) -> Result<Map<String, Json>, QueryError>
pub fn row( &self, snap: &QuerySnapshot, tenant: TenantId, ord: u64, ) -> Result<Map<String, Json>, QueryError>
The fields of record ord: each one’s value, as the rebuilt record
would carry it (the highest typed definition holding
one wins, as when occurrences fold into a record).
§Errors
Returns storage read errors and corrupt-occurrence errors.
Auto Trait Implementations§
impl Freeze for PointFields
impl RefUnwindSafe for PointFields
impl Send for PointFields
impl Sync for PointFields
impl Unpin for PointFields
impl UnsafeUnpin for PointFields
impl UnwindSafe for PointFields
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