pub struct JoinCursor<'a> { /* private fields */ }Expand description
A cursor that returns records satisfying all secondary-key constraints.
Obtained via Database::join.
The cursor owns the SecondaryCursor objects for the duration of the
join. When close is called (or the cursor is
dropped), the internal cursors are released. The caller’s original
cursor variables have been moved in so they are no longer accessible.
Implementations§
Source§impl<'a> JoinCursor<'a>
impl<'a> JoinCursor<'a>
Sourcepub fn get_next(
&mut self,
key: &mut DatabaseEntry,
data: &mut DatabaseEntry,
) -> Result<OperationStatus>
pub fn get_next( &mut self, key: &mut DatabaseEntry, data: &mut DatabaseEntry, ) -> Result<OperationStatus>
Returns the next primary key and primary record data from the join.
Returns OperationStatus::Success with key and data filled in,
or OperationStatus::NotFound when there are no more matching records.
Sourcepub fn get_next_key(
&mut self,
key: &mut DatabaseEntry,
) -> Result<OperationStatus>
pub fn get_next_key( &mut self, key: &mut DatabaseEntry, ) -> Result<OperationStatus>
Returns the next primary key only — does not read primary data.
Equivalent to ’s JoinCursor.getNext(key, lockMode) single-arg
overload. Useful when only the key is needed and avoiding a primary
read is desirable.
Sourcepub fn get_database(&self) -> &Database
pub fn get_database(&self) -> &Database
Returns a reference to the primary database associated with this cursor.
Sourcepub fn get_config(&self) -> JoinConfig
pub fn get_config(&self) -> JoinConfig
Returns a clone of this cursor’s configuration.