Storage Engine API
mongo::MergeSizeTestBase< OnDiskFormat > Class Template Referenceabstract
Inheritance diagram for mongo::MergeSizeTestBase< OnDiskFormat >:
mongo::BtreeLogicTestBase< OnDiskFormat > mongo::MergeLeftEmpty< OnDiskFormat > mongo::MergeMinLeftEmpty< OnDiskFormat > mongo::MergeMinRightEmpty< OnDiskFormat > mongo::MergeRightEmpty< OnDiskFormat > mongo::MergeSizeJustRightLeft< OnDiskFormat > mongo::MergeSizeJustRightRight< OnDiskFormat > mongo::BalanceLeftEmpty< OnDiskFormat > mongo::BalanceRightEmpty< OnDiskFormat > mongo::MergeSizeLeft< OnDiskFormat > mongo::MergeSizeRightTooBig< OnDiskFormat > mongo::NoMergeBelowMarkLeft< OnDiskFormat > mongo::NoMoveAtLowWaterMarkLeft< OnDiskFormat > mongo::MergeSizeLeftTooBig< OnDiskFormat > mongo::MergeSizeRight< OnDiskFormat > mongo::NoMergeBelowMarkRight< OnDiskFormat > mongo::NoMoveAtLowWaterMarkRight< OnDiskFormat >

Public Member Functions

 MergeSizeTestBase ()
 
void run ()
 
- Public Member Functions inherited from mongo::BtreeLogicTestBase< OnDiskFormat >
 BtreeLogicTestBase ()
 
virtual ~BtreeLogicTestBase ()
 

Protected Member Functions

virtual int leftAdditional () const
 
virtual int rightAdditional () const
 
virtual void initCheck ()
 
virtual void validate ()
 
virtual int leftSize () const =0
 
virtual int rightSize () const =0
 
virtual const char * delKeys () const
 
virtual bool merge () const
 
- Protected Member Functions inherited from mongo::BtreeLogicTestBase< OnDiskFormat >
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 BucketTypechild (const BucketType *bucket, int i) const
 
BucketTypehead () 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...
 

Static Protected Member Functions

static BSONObj bigKey (char a)
 
static BSONObj biggestKey (char a)
 
static int bigSize ()
 
static int biggestSize ()
 

Protected Attributes

int _count
 
- Protected Attributes inherited from mongo::BtreeLogicTestBase< OnDiskFormat >
BtreeLogicTestHelper< OnDiskFormat > _helper
 

Additional Inherited Members

- Public Types inherited from mongo::BtreeLogicTestBase< OnDiskFormat >
typedef OnDiskFormat ::BucketType BucketType
 
typedef OnDiskFormat ::FixedWidthKeyType FixedWidthKeyType
 
typedef BtreeLogic< OnDiskFormat >::FullKey FullKey
 
typedef BtreeLogic< OnDiskFormat >::KeyDataOwnedType KeyDataOwnedType
 

Constructor & Destructor Documentation

◆ MergeSizeTestBase()

template<class OnDiskFormat >
mongo::MergeSizeTestBase< OnDiskFormat >::MergeSizeTestBase ( )
inline

Member Function Documentation

◆ biggestKey()

template<class OnDiskFormat >
static BSONObj mongo::MergeSizeTestBase< OnDiskFormat >::biggestKey ( char  a)
inlinestaticprotected

◆ biggestSize()

template<class OnDiskFormat >
static int mongo::MergeSizeTestBase< OnDiskFormat >::biggestSize ( )
inlinestaticprotected

◆ bigKey()

template<class OnDiskFormat >
static BSONObj mongo::MergeSizeTestBase< OnDiskFormat >::bigKey ( char  a)
inlinestaticprotected

◆ bigSize()

template<class OnDiskFormat >
static int mongo::MergeSizeTestBase< OnDiskFormat >::bigSize ( )
inlinestaticprotected

◆ delKeys()

◆ initCheck()

◆ leftAdditional()

template<class OnDiskFormat >
virtual int mongo::MergeSizeTestBase< OnDiskFormat >::leftAdditional ( ) const
inlineprotectedvirtual

◆ leftSize()

◆ merge()

◆ rightAdditional()

template<class OnDiskFormat >
virtual int mongo::MergeSizeTestBase< OnDiskFormat >::rightAdditional ( ) const
inlineprotectedvirtual

◆ rightSize()

◆ run()

template<class OnDiskFormat >
void mongo::MergeSizeTestBase< OnDiskFormat >::run ( )
inline

◆ validate()

Member Data Documentation

◆ _count

template<class OnDiskFormat >
int mongo::MergeSizeTestBase< OnDiskFormat >::_count
protected

The documentation for this class was generated from the following file: