|
| WiredTigerIndexUnique (OperationContext *ctx, const std::string &uri, const IndexDescriptor *desc, KVPrefix prefix, bool readOnly=false) |
|
std::unique_ptr< SortedDataInterface::Cursor > | newCursor (OperationContext *opCtx, bool forward) const override |
| Returns an unpositioned cursor over 'this' index. More...
|
|
SortedDataBuilderInterface * | getBulkBuilder (OperationContext *opCtx, bool dupsAllowed) override |
| Return a bulk builder for 'this' index. More...
|
|
bool | unique () const override |
|
bool | isTimestampSafeUniqueIdx () const override |
|
bool | isDup (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id) override |
|
Status | _insert (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) override |
|
Status | _insertTimestampUnsafe (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
|
Status | _insertTimestampSafe (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
|
void | _unindex (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) override |
|
void | _unindexTimestampUnsafe (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
|
void | _unindexTimestampSafe (OperationContext *opCtx, WT_CURSOR *c, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
|
| WiredTigerIndex (OperationContext *ctx, const std::string &uri, const IndexDescriptor *desc, KVPrefix prefix, bool readOnly) |
|
virtual Status | insert (OperationContext *opCtx, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
| Insert an entry into the index with the specified key and RecordId. More...
|
|
virtual void | unindex (OperationContext *opCtx, const BSONObj &key, const RecordId &id, bool dupsAllowed) |
| Remove the entry from the index with the specified key and RecordId. More...
|
|
virtual void | fullValidate (OperationContext *opCtx, long long *numKeysOut, ValidateResults *fullResults) const |
| TODO: expose full set of args for testing? More...
|
|
virtual bool | appendCustomStats (OperationContext *opCtx, BSONObjBuilder *output, double scale) const |
|
virtual Status | dupKeyCheck (OperationContext *opCtx, const BSONObj &key, const RecordId &id) |
| Return ErrorCodes::DuplicateKey if 'key' already exists in 'this' index at a RecordId other than 'loc', and Status::OK() otherwise. More...
|
|
virtual bool | isEmpty (OperationContext *opCtx) |
| Return true if 'this' index is empty, and false otherwise. More...
|
|
virtual Status | touch (OperationContext *opCtx) const |
| Attempt to bring the entirety of 'this' index into memory. More...
|
|
virtual long long | getSpaceUsedBytes (OperationContext *opCtx) const |
| Return the number of bytes consumed by 'this' index. More...
|
|
virtual Status | initAsEmpty (OperationContext *opCtx) |
|
virtual Status | compact (OperationContext *opCtx) |
| Attempt to reduce the storage space used by this index via compaction. More...
|
|
const std::string & | uri () const |
|
uint64_t | tableId () const |
|
Ordering | ordering () const |
|
KeyString::Version | keyStringVersion () const |
|
std::string | collectionNamespace () const |
|
std::string | indexName () const |
|
bool | isIdIndex () const |
|
Status | dupKeyError (const BSONObj &key) |
|
virtual | ~SortedDataInterface () |
|
virtual long long | numEntries (OperationContext *opCtx) const |
| Return the number of entries in 'this' index. More...
|
|
virtual std::unique_ptr< Cursor > | newRandomCursor (OperationContext *opCtx) const |
| Constructs a cursor over an index that returns entries in a randomized order, and allows storage engines to provide a more efficient way to randomly sample a collection than MongoDB's default sampling methods, which are used when this method returns {}. More...
|
|