C# Class BTDB.KVDBLayer.BTreeMem.BTreeRoot

Inheritance: IBTreeRootNode
Afficher le fichier Open project: Bobris/BTDB

Méthodes publiques

Méthode Description
BTreeRoot ( long transactionId ) : System
BuildTree ( long keyCount, Func memberGenerator ) : void
CalcKeyCount ( ) : long
CreateOrUpdate ( BTDB.KVDBLayer.BTreeMem.CreateOrUpdateCtx ctx ) : void
EraseRange ( long transactionId, long firstKeyIndex, long lastKeyIndex ) : IBTreeNode
EraseRange ( long firstKeyIndex, long lastKeyIndex ) : void
FillStackByIndex ( List stack, long keyIndex ) : void
FillStackByLeftMost ( List stack, int idx ) : void
FillStackByRightMost ( List stack, int idx ) : void
FindKey ( List stack, long &keyIndex, byte prefix, ByteBuffer key ) : FindResult
FindLastWithPrefix ( byte prefix ) : long
FindNextKey ( List stack ) : bool
FindPreviousKey ( List stack ) : bool
GetLastChildrenIdx ( ) : int
GetLeftMostKey ( ) : byte[]
NewTransactionRoot ( ) : IBTreeRootNode
NextIdxValid ( int idx ) : bool

Private Methods

Méthode Description
BuildBranchNode ( long count, Func generator ) : IBTreeNode
BuildTreeNode ( long keyCount, Func memberGenerator ) : IBTreeNode
GetKeyFromStack ( List stack ) : ByteBuffer
KeyStartsWithPrefix ( byte prefix, ByteBuffer key ) : bool

Method Details

BTreeRoot() public méthode

public BTreeRoot ( long transactionId ) : System
transactionId long
Résultat System

BuildTree() public méthode

public BuildTree ( long keyCount, Func memberGenerator ) : void
keyCount long
memberGenerator Func
Résultat void

CalcKeyCount() public méthode

public CalcKeyCount ( ) : long
Résultat long

CreateOrUpdate() public méthode

public CreateOrUpdate ( BTDB.KVDBLayer.BTreeMem.CreateOrUpdateCtx ctx ) : void
ctx BTDB.KVDBLayer.BTreeMem.CreateOrUpdateCtx
Résultat void

EraseRange() public méthode

public EraseRange ( long transactionId, long firstKeyIndex, long lastKeyIndex ) : IBTreeNode
transactionId long
firstKeyIndex long
lastKeyIndex long
Résultat IBTreeNode

EraseRange() public méthode

public EraseRange ( long firstKeyIndex, long lastKeyIndex ) : void
firstKeyIndex long
lastKeyIndex long
Résultat void

FillStackByIndex() public méthode

public FillStackByIndex ( List stack, long keyIndex ) : void
stack List
keyIndex long
Résultat void

FillStackByLeftMost() public méthode

public FillStackByLeftMost ( List stack, int idx ) : void
stack List
idx int
Résultat void

FillStackByRightMost() public méthode

public FillStackByRightMost ( List stack, int idx ) : void
stack List
idx int
Résultat void

FindKey() public méthode

public FindKey ( List stack, long &keyIndex, byte prefix, ByteBuffer key ) : FindResult
stack List
keyIndex long
prefix byte
key ByteBuffer
Résultat FindResult

FindLastWithPrefix() public méthode

public FindLastWithPrefix ( byte prefix ) : long
prefix byte
Résultat long

FindNextKey() public méthode

public FindNextKey ( List stack ) : bool
stack List
Résultat bool

FindPreviousKey() public méthode

public FindPreviousKey ( List stack ) : bool
stack List
Résultat bool

GetLastChildrenIdx() public méthode

public GetLastChildrenIdx ( ) : int
Résultat int

GetLeftMostKey() public méthode

public GetLeftMostKey ( ) : byte[]
Résultat byte[]

NewTransactionRoot() public méthode

public NewTransactionRoot ( ) : IBTreeRootNode
Résultat IBTreeRootNode

NextIdxValid() public méthode

public NextIdxValid ( int idx ) : bool
idx int
Résultat bool