![]() |
Storage Engine API
|
This class is made friend of BtreeLogic so we can add whatever private method accesses we need to it, to be used by the tests. More...
#include <btree_logic.h>
This class is made friend of BtreeLogic so we can add whatever private method accesses we need to it, to be used by the tests.
Public Types | |
| typedef BtreeLayoutType::BucketType | BucketType |
| typedef BtreeLayoutType::FixedWidthKeyType | FixedWidthKeyType |
| typedef BtreeLogic< BtreeLayoutType >::FullKey | FullKey |
| typedef BtreeLogic< BtreeLayoutType >::KeyDataOwnedType | KeyDataOwnedType |
Public Member Functions | |
| BtreeLogicTestBase () | |
| virtual | ~BtreeLogicTestBase () |
Protected Member Functions | |
| void | checkValidNumKeys (int nKeys) |
| Status | insert (const BSONObj &key, const DiskLoc dl, bool dupsAllowed=true) |
| bool | unindex (const BSONObj &key) |
| void | locate (const BSONObj &key, int expectedPos, bool expectedFound, const RecordId &expectedLocation, int direction) |
| void | locate (const BSONObj &key, int expectedPos, bool expectedFound, const DiskLoc &expectedLocation, int direction) |
| const BucketType * | child (const BucketType *bucket, int i) const |
| BucketType * | head () const |
| void | forcePackBucket (const RecordId bucketLoc) |
| void | truncateBucket (BucketType *bucket, int N, int &refPos) |
| int | bucketPackedDataSize (BucketType *bucket, int refPos) |
| int | bucketRebalancedSeparatorPos (const RecordId bucketLoc, int leftIndex) |
| FullKey | getKey (const RecordId bucketLoc, int pos) const |
| void | markKeyUnused (const DiskLoc bucketLoc, int keyPos) |
| DiskLoc | newBucket () |
| void | setBucketNextChild (const DiskLoc bucketLoc, const DiskLoc nextChild) |
| Sets the nextChild pointer for the bucket at the specified location. More... | |
Protected Attributes | |
| BtreeLogicTestHelper< BtreeLayoutType > | _helper |
| typedef BtreeLayoutType::BucketType mongo::BtreeLogicTestBase< BtreeLayoutType >::BucketType |
| typedef BtreeLayoutType::FixedWidthKeyType mongo::BtreeLogicTestBase< BtreeLayoutType >::FixedWidthKeyType |
| typedef BtreeLogic<BtreeLayoutType>::FullKey mongo::BtreeLogicTestBase< BtreeLayoutType >::FullKey |
| typedef BtreeLogic<BtreeLayoutType>::KeyDataOwnedType mongo::BtreeLogicTestBase< BtreeLayoutType >::KeyDataOwnedType |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Sets the nextChild pointer for the bucket at the specified location.
|
inlineprotected |
|
inlineprotected |
|
protected |