#include <wiredtiger_record_store.h>
|
virtual RecordId | getKey (WT_CURSOR *cursor) const override |
|
virtual void | setKey (WT_CURSOR *cursor, RecordId id) const override |
|
virtual bool | hasWrongPrefix (WT_CURSOR *cursor, RecordId *id) const override |
| Callers must have already checked the return value of a positioning method against 'WT_NOTFOUND'. More...
|
|
virtual void | initCursorToBeginning () override |
| Called when restoring a cursor that has not been advanced. More...
|
|
◆ WiredTigerRecordStorePrefixedCursor()
mongo::WiredTigerRecordStorePrefixedCursor::WiredTigerRecordStorePrefixedCursor |
( |
OperationContext * |
opCtx, |
|
|
const WiredTigerRecordStore & |
rs, |
|
|
KVPrefix |
prefix, |
|
|
bool |
forward = true |
|
) |
| |
◆ getKey()
RecordId mongo::WiredTigerRecordStorePrefixedCursor::getKey |
( |
WT_CURSOR * |
cursor | ) |
const |
|
overrideprotectedvirtual |
◆ hasWrongPrefix()
bool mongo::WiredTigerRecordStorePrefixedCursor::hasWrongPrefix |
( |
WT_CURSOR * |
cursor, |
|
|
RecordId * |
id |
|
) |
| const |
|
overrideprotectedvirtual |
Callers must have already checked the return value of a positioning method against 'WT_NOTFOUND'.
This method allows for additional predicates to be considered on a validly positioned cursor. 'id' is an out parameter. Implementations are not required to fill it in. It's simply a possible optimization to avoid a future 'getKey' call if 'hasWrongPrefix' already did one.
Implements mongo::WiredTigerRecordStoreCursorBase.
◆ initCursorToBeginning()
void mongo::WiredTigerRecordStorePrefixedCursor::initCursorToBeginning |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ setKey()
void mongo::WiredTigerRecordStorePrefixedCursor::setKey |
( |
WT_CURSOR * |
cursor, |
|
|
RecordId |
id |
|
) |
| const |
|
overrideprotectedvirtual |
◆ _prefix
KVPrefix mongo::WiredTigerRecordStorePrefixedCursor::_prefix |
|
private |
The documentation for this class was generated from the following files: