C# Class BTDB.KVDBLayer.BTree.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
CloneRoot ( ) : IBTreeRootNode
CreateOrUpdate ( BTDB.KVDBLayer.BTree.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[]
Iterate ( BTreeIterateAction action ) : void
NewTransactionRoot ( ) : IBTreeRootNode
NextIdxValid ( int idx ) : bool
RemappingIterate ( long transactionId, BTreeRemappingIterateAction action ) : IBTreeNode
RemappingIterate ( BTreeRemappingIterateAction action ) : void

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

CloneRoot() public méthode

public CloneRoot ( ) : IBTreeRootNode
Résultat IBTreeRootNode

CreateOrUpdate() public méthode

public CreateOrUpdate ( BTDB.KVDBLayer.BTree.CreateOrUpdateCtx ctx ) : void
ctx BTDB.KVDBLayer.BTree.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[]

Iterate() public méthode

public Iterate ( BTreeIterateAction action ) : void
action BTreeIterateAction
Résultat void

NewTransactionRoot() public méthode

public NewTransactionRoot ( ) : IBTreeRootNode
Résultat IBTreeRootNode

NextIdxValid() public méthode

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

RemappingIterate() public méthode

public RemappingIterate ( long transactionId, BTreeRemappingIterateAction action ) : IBTreeNode
transactionId long
action BTreeRemappingIterateAction
Résultat IBTreeNode

RemappingIterate() public méthode

public RemappingIterate ( BTreeRemappingIterateAction action ) : void
action BTreeRemappingIterateAction
Résultat void