C# Class DBreeze.LianaTrie.LTrieGenerationNode

Afficher le fichier Open project: hhblaze/DBreeze Class Usage Examples

Méthodes publiques

Свойство Type Description
KidsBeforeModification byte[]
KidsInNode LTrieKidsInNode
Pointer byte[]
ToChangeParentNode bool
ToRemoveFromParentNode bool
ToWrite bool
Value byte

Méthodes publiques

Méthode Description
GetKidAsValue ( bool searchForAValue, int kid ) : LTrieKid
LTrieGenerationNode ( LTrieRootNode rootNode ) : System
ReadSelf ( bool useCache, byte generationMapLine ) : void
RemoveAllKids ( ) : void
RemoveKid ( byte kid, bool lastElementOfTheKey, byte &key, bool &WasRemoved, bool retrieveDeletedValue, byte &deletedValue ) : bool

Pointer to the removing key value can be null, if such key never existed

RemoveKidPointer ( byte kid ) : void
SetupKidPointer ( byte kid, byte ptr ) : void
SetupKidWithValue ( byte kid, bool lastElementOfTheKey, byte &fullKey, byte &value, bool useExistingPointerToValue, bool &WasUpdated, bool dontUpdateIfExists ) : LTrieSetupKidResult

SetupKidWithValuePartially ( byte kid, bool lastElementOfTheKey, byte &fullKey, byte &value, bool useExistingPointerToValue, uint startIndex, long &valueStartPtr, bool &WasUpdated ) : LTrieSetupKidResult
WriteSelf ( byte generationMapLine ) : void

Private Methods

Méthode Description
GetQuantityOfReservationSlots ( ) : int

Calculating Quantity of Reservations slots for 0 and 1 Evolutions.

TryOverWriteValue ( byte ptr, byte &value, byte &fullKey ) : byte[]

Returns pointer to the newly stored value

TryOverWriteValuePartially ( byte ptr, byte &value, byte &fullKey, uint startIndex, long &valueStartPtr ) : byte[]

Returns pointer to the newly stored value

WriteKidValue ( byte &fullKey, byte &value, bool tryToOverwrite, byte overWritePointer ) : byte[]
WriteKidValuePartially ( byte &fullKey, byte &value, bool tryToOverwrite, byte overWritePointer, uint startIndex, long &valueStartPtr ) : byte[]

Method Details

GetKidAsValue() public méthode

public GetKidAsValue ( bool searchForAValue, int kid ) : LTrieKid
searchForAValue bool
kid int
Résultat LTrieKid

LTrieGenerationNode() public méthode

public LTrieGenerationNode ( LTrieRootNode rootNode ) : System
rootNode LTrieRootNode
Résultat System

ReadSelf() public méthode

public ReadSelf ( bool useCache, byte generationMapLine ) : void
useCache bool
generationMapLine byte
Résultat void

RemoveAllKids() public méthode

public RemoveAllKids ( ) : void
Résultat void

RemoveKid() public méthode

Pointer to the removing key value can be null, if such key never existed
public RemoveKid ( byte kid, bool lastElementOfTheKey, byte &key, bool &WasRemoved, bool retrieveDeletedValue, byte &deletedValue ) : bool
kid byte
lastElementOfTheKey bool
key byte
WasRemoved bool indicates that value existed if true
retrieveDeletedValue bool indicates if we must also return deleted value
deletedValue byte
Résultat bool

RemoveKidPointer() public méthode

public RemoveKidPointer ( byte kid ) : void
kid byte
Résultat void

SetupKidPointer() public méthode

public SetupKidPointer ( byte kid, byte ptr ) : void
kid byte
ptr byte
Résultat void

SetupKidWithValue() public méthode

public SetupKidWithValue ( byte kid, bool lastElementOfTheKey, byte &fullKey, byte &value, bool useExistingPointerToValue, bool &WasUpdated, bool dontUpdateIfExists ) : LTrieSetupKidResult
kid byte
lastElementOfTheKey bool
fullKey byte
value byte
useExistingPointerToValue bool
WasUpdated bool true means that value existed and was updated
dontUpdateIfExists bool When true - if value exists, we dont update it. If WasUpdated = true then we value exists, if false - we have inserted new one
Résultat LTrieSetupKidResult

SetupKidWithValuePartially() public méthode

public SetupKidWithValuePartially ( byte kid, bool lastElementOfTheKey, byte &fullKey, byte &value, bool useExistingPointerToValue, uint startIndex, long &valueStartPtr, bool &WasUpdated ) : LTrieSetupKidResult
kid byte
lastElementOfTheKey bool
fullKey byte
value byte
useExistingPointerToValue bool
startIndex uint
valueStartPtr long
WasUpdated bool
Résultat LTrieSetupKidResult

WriteSelf() public méthode

public WriteSelf ( byte generationMapLine ) : void
generationMapLine byte
Résultat void

Property Details

KidsBeforeModification public_oe property

Field which contains either null (if Generation node is empty and had no kids) or value in format of prepared for Save Kids, in case if ReadOutExistingNode.
public byte[] KidsBeforeModification
Résultat byte[]

KidsInNode public_oe property

public LTrieKidsInNode,DBreeze.LianaTrie KidsInNode
Résultat LTrieKidsInNode

Pointer public_oe property

public byte[] Pointer
Résultat byte[]

ToChangeParentNode public_oe property

When New Node is created it's true After Reading Node it must become false, After WriteSelf it will be or true or false.
public bool ToChangeParentNode
Résultat bool

ToRemoveFromParentNode public_oe property

public bool ToRemoveFromParentNode
Résultat bool

ToWrite public_oe property

public bool ToWrite
Résultat bool

Value public_oe property

public byte Value
Résultat byte