◆ BulkBuilderBase()
mongo::MobileIndex::BulkBuilderBase::BulkBuilderBase |
( |
MobileIndex * |
index, |
|
|
OperationContext * |
opCtx, |
|
|
bool |
dupsAllowed |
|
) |
| |
|
inline |
◆ ~BulkBuilderBase()
virtual mongo::MobileIndex::BulkBuilderBase::~BulkBuilderBase |
( |
| ) |
|
|
inlinevirtual |
◆ _addKey()
virtual Status mongo::MobileIndex::BulkBuilderBase::_addKey |
( |
const BSONObj & |
key, |
|
|
const RecordId & |
recId |
|
) |
| |
|
protectedpure virtual |
◆ _checkNextKey()
Status mongo::MobileIndex::BulkBuilderBase::_checkNextKey |
( |
const BSONObj & |
key | ) |
|
|
inlineprotected |
Checks whether the new key to be inserted is > or >= the previous one depending on _dupsAllowed.
◆ addKey()
Status mongo::MobileIndex::BulkBuilderBase::addKey |
( |
const BSONObj & |
key, |
|
|
const RecordId & |
loc |
|
) |
| |
|
inlineoverridevirtual |
Adds 'key' to intermediate storage.
'key' must be > or >= the last key passed to this function (depends on _dupsAllowed). If this is violated an error Status (ErrorCodes::InternalError) will be returned.
Implements mongo::SortedDataBuilderInterface.
◆ commit()
void mongo::MobileIndex::BulkBuilderBase::commit |
( |
bool |
mayInterrupt | ) |
|
|
inlineoverridevirtual |
Do any necessary work to finish building the tree.
The default implementation may be used if no commit phase is necessary because addKey always leaves the tree in a valid state.
This is called outside of any WriteUnitOfWork to allow implementations to split this up into multiple units.
Reimplemented from mongo::SortedDataBuilderInterface.
◆ _dupsAllowed
const bool mongo::MobileIndex::BulkBuilderBase::_dupsAllowed |
|
protected |
◆ _index
MobileIndex* mongo::MobileIndex::BulkBuilderBase::_index |
|
protected |
◆ _lastKey
BSONObj mongo::MobileIndex::BulkBuilderBase::_lastKey |
|
protected |
◆ _opCtx
OperationContext* const mongo::MobileIndex::BulkBuilderBase::_opCtx |
|
protected |
The documentation for this class was generated from the following file:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mobile/mobile_index.cpp