![]() |
Storage Engine API
|
#include <wiredtiger_record_store.h>
Public Member Functions | |
| WiredTigerRecordStorePrefixedCursor (OperationContext *opCtx, const WiredTigerRecordStore &rs, KVPrefix prefix, bool forward=true) | |
Public Member Functions inherited from mongo::WiredTigerRecordStoreCursorBase | |
| WiredTigerRecordStoreCursorBase (OperationContext *opCtx, const WiredTigerRecordStore &rs, bool forward) | |
| boost::optional< Record > | next () |
| Moves forward and returns the new data or boost::none if there is no more data. More... | |
| boost::optional< Record > | seekExact (const RecordId &id) |
| Seeks to a Record with the provided id. More... | |
| void | save () |
| Prepares for state changes in underlying data in a way that allows the cursor's current position to be restored. More... | |
| void | saveUnpositioned () |
| Prepares for state changes in underlying data without necessarily saving the current state. More... | |
| bool | restore () |
| Recovers from potential state changes in underlying data. More... | |
| void | detachFromOperationContext () |
| Detaches from the OperationContext and releases any storage-engine state. More... | |
| void | reattachToOperationContext (OperationContext *opCtx) |
| Reattaches to the OperationContext and reacquires any storage-engine state. More... | |
Public Member Functions inherited from mongo::SeekableRecordCursor | |
| virtual std::unique_ptr< RecordFetcher > | fetcherForId (const RecordId &id) const |
| Returns a RecordFetcher if needed to fetch the provided Record or none if unneeded. More... | |
Public Member Functions inherited from mongo::RecordCursor | |
| virtual | ~RecordCursor ()=default |
| virtual void | invalidate (OperationContext *opCtx, const RecordId &id) |
| Inform the cursor that this id is being invalidated. More... | |
| virtual std::unique_ptr< RecordFetcher > | fetcherForNext () const |
| Returns a RecordFetcher if needed for a call to next() or none if unneeded. More... | |
Protected Member Functions | |
| 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... | |
Private Attributes | |
| KVPrefix | _prefix |
Additional Inherited Members | |
Protected Attributes inherited from mongo::WiredTigerRecordStoreCursorBase | |
| const WiredTigerRecordStore & | _rs |
| OperationContext * | _opCtx |
| const bool | _forward |
| bool | _skipNextAdvance = false |
| boost::optional< WiredTigerCursor > | _cursor |
| bool | _eof = false |
| RecordId | _lastReturnedId |
| mongo::WiredTigerRecordStorePrefixedCursor::WiredTigerRecordStorePrefixedCursor | ( | OperationContext * | opCtx, |
| const WiredTigerRecordStore & | rs, | ||
| KVPrefix | prefix, | ||
| bool | forward = true |
||
| ) |
|
overrideprotectedvirtual |
Implements mongo::WiredTigerRecordStoreCursorBase.
|
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.
|
overrideprotectedvirtual |
Called when restoring a cursor that has not been advanced.
Implements mongo::WiredTigerRecordStoreCursorBase.
|
overrideprotectedvirtual |
Implements mongo::WiredTigerRecordStoreCursorBase.
|
private |