A RecordStore that stores all data on the heap.
This implementation contains only the functionality necessary to test btree.
|
| HeapRecordStoreBtree (StringData ns) |
|
virtual RecordData | dataFor (OperationContext *opCtx, const RecordId &loc) const |
| Get the RecordData at loc, which must exist. More...
|
|
virtual bool | findRecord (OperationContext *opCtx, const RecordId &loc, RecordData *out) const |
|
virtual void | deleteRecord (OperationContext *opCtx, const RecordId &dl) |
|
virtual StatusWith< RecordId > | insertRecord (OperationContext *opCtx, const char *data, int len, Timestamp, bool enforceQuota) |
|
virtual Status | insertRecordsWithDocWriter (OperationContext *opCtx, const DocWriter *const *docs, const Timestamp *, size_t nDocs, RecordId *idsOut) |
| Inserts nDocs documents into this RecordStore using the DocWriter interface. More...
|
|
virtual long long | numRecords (OperationContext *opCtx) const |
| Total number of record in the RecordStore. More...
|
|
virtual Status | touch (OperationContext *opCtx, BSONObjBuilder *output) const |
| Load all data into cache. More...
|
|
virtual Status | updateRecord (OperationContext *opCtx, const RecordId &oldLocation, const char *data, int len, bool enforceQuota, UpdateNotifier *notifier) |
|
virtual bool | updateWithDamagesSupported () const |
|
virtual StatusWith< RecordData > | updateWithDamages (OperationContext *opCtx, const RecordId &loc, const RecordData &oldRec, const char *damageSource, const mutablebson::DamageVector &damages) |
| Updates the record positioned at 'loc' in-place using the deltas described by 'damages'. More...
|
|
std::unique_ptr< SeekableRecordCursor > | getCursor (OperationContext *opCtx, bool forward) const final |
| Returns a new cursor over this record store. More...
|
|
virtual Status | truncate (OperationContext *opCtx) |
| removes all Records More...
|
|
virtual void | cappedTruncateAfter (OperationContext *opCtx, RecordId end, bool inclusive) |
| Truncate documents newer than the document at 'end' from the capped collection. More...
|
|
virtual bool | compactSupported () const |
| does this RecordStore support the compact operation? More...
|
|
virtual Status | validate (OperationContext *opCtx, ValidateCmdLevel level, ValidateAdaptor *adaptor, ValidateResults *results, BSONObjBuilder *output) |
|
virtual void | appendCustomStats (OperationContext *opCtx, BSONObjBuilder *result, double scale) const |
|
virtual void | increaseStorageSize (OperationContext *opCtx, int size, bool enforceQuota) |
|
virtual int64_t | storageSize (OperationContext *opCtx, BSONObjBuilder *extraInfo=NULL, int infoLevel=0) const |
|
virtual long long | dataSize (OperationContext *opCtx) const |
| The dataSize is an approximation of the sum of the sizes (in bytes) of the documents or entries in the recordStore. More...
|
|
virtual MmapV1RecordHeader * | recordFor (const RecordId &loc) const |
|
virtual bool | isCapped () const |
|
virtual const char * | name () const |
|
void | waitForAllEarlierOplogWritesToBeVisible (OperationContext *opCtx) const override |
| Waits for all writes that completed before this call to be visible to forward scans. More...
|
|
virtual void | updateStatsAfterRepair (OperationContext *opCtx, long long numRecords, long long dataSize) |
| Called after a repair operation is run with the recomputed numRecords and dataSize. More...
|
|
| RecordStore (StringData ns) |
|
virtual | ~RecordStore () |
|
virtual const std::string & | ns () const |
|
virtual void | setCappedCallback (CappedCallback *) |
|
virtual Status | insertRecords (OperationContext *opCtx, std::vector< Record > *records, std::vector< Timestamp > *timestamps, bool enforceQuota) |
|
StatusWith< RecordId > | insertRecordWithDocWriter (OperationContext *opCtx, const DocWriter *doc, Timestamp timestamp) |
| A thin wrapper around insertRecordsWithDocWriter() to simplify handling of single DocWriters. More...
|
|
virtual std::unique_ptr< RecordCursor > | getCursorForRepair (OperationContext *opCtx) const |
| Constructs a cursor over a potentially corrupted store, which can be used to salvage damaged records. More...
|
|
virtual std::unique_ptr< RecordCursor > | getRandomCursor (OperationContext *opCtx) const |
| Constructs a cursor over a record store that returns documents in a randomized order, and allows storage engines to provide a more efficient way of random sampling of a record store than MongoDB's default sampling methods, which is used when this method returns {}. More...
|
|
virtual std::vector< std::unique_ptr< RecordCursor > > | getManyCursors (OperationContext *opCtx) const |
| Returns many RecordCursors that partition the RecordStore into many disjoint sets. More...
|
|
virtual bool | compactsInPlace () const |
| Does compact() leave RecordIds alone or can they change. More...
|
|
virtual Status | compact (OperationContext *opCtx, RecordStoreCompactAdaptor *adaptor, const CompactOptions *options, CompactStats *stats) |
| Attempt to reduce the storage space used by this RecordStore. More...
|
|
virtual bool | isInRecordIdOrder () const |
| Does the RecordStore cursor retrieve its document in RecordId Order? More...
|
|
virtual boost::optional< RecordId > | oplogStartHack (OperationContext *opCtx, const RecordId &startingPosition) const |
| Return the RecordId of an oplog entry as close to startingPosition as possible without being higher. More...
|
|
virtual Status | oplogDiskLocRegister (OperationContext *opCtx, const Timestamp &opTime, bool orderedCommit) |
| When we write to an oplog, we call this so that if the storage engine supports doc locking, it can manage the visibility of oplog entries to ensure they are ordered. More...
|
|
virtual Status | updateCappedSize (OperationContext *opCtx, long long cappedSize) |
| used to support online change oplog size. More...
|
|