![]() |
Storage Engine API
|
Bulk builds a non-unique index. More...
Bulk builds a non-unique index.
Public Member Functions | |
StandardBulkBuilder (WiredTigerIndex *idx, OperationContext *opCtx, KVPrefix prefix) | |
Status | addKey (const BSONObj &key, const RecordId &id) override |
Adds 'key' to intermediate storage. More... | |
void | commit (bool mayInterrupt) override |
Do any necessary work to finish building the tree. More... | |
![]() | |
BulkBuilder (WiredTigerIndex *idx, OperationContext *opCtx, KVPrefix prefix) | |
~BulkBuilder () | |
![]() | |
virtual | ~SortedDataBuilderInterface () |
Private Attributes | |
WiredTigerIndex * | _idx |
Additional Inherited Members | |
![]() | |
WT_CURSOR * | openBulkCursor (WiredTigerIndex *idx) |
void | setKey (WT_CURSOR *cursor, const WT_ITEM *item) |
![]() | |
const Ordering | _ordering |
OperationContext *const | _opCtx |
UniqueWiredTigerSession const | _session |
WT_CURSOR *const | _cursor |
KVPrefix | _prefix |
|
inline |
|
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.
|
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.
|
private |