C# Class DBreeze.LianaTrie.LTrieRootNode

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

Méthodes publiques

Свойство Type Description
EmptyPointer byte[]
LinkToZeroNode byte[]
RecordsCount ulong
Tree LTrie

Méthodes publiques

Méthode Description
AddKey ( byte &key, byte &value, bool &WasUpdated, bool dontUpdateIfExists ) : byte[]

LTrieRootNode ( LTrie tree ) : System
RemoveAll ( bool withFileRecreation ) : void

Check TransactionCommit in case of RemoveAll with file Recreation. Note if some other threads are reading parallel data, exception will be thrown in their transaction. It's correct.

RemoveKey ( byte &key, bool &WasRemoved, bool retrieveDeletedValue, byte &deletedValue ) : void

Will return pointer to the value of the removing kid (if it existed). Otherwise NULL.

RollBack ( ) : void
Save_GM_nodes_Starting_From ( int index ) : void
TransactionalCommit ( ) : void
TransactionalRollBack ( ) : void

Private Methods

Méthode Description
DeserializeRootNode ( ) : void

bytes[] to objects

ReadRootNode ( ) : void
SerializeRootNode ( ) : byte[]

Root to byte[]

Method Details

AddKey() public méthode

public AddKey ( byte &key, byte &value, bool &WasUpdated, bool dontUpdateIfExists ) : byte[]
key byte
value byte
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 byte[]

LTrieRootNode() public méthode

public LTrieRootNode ( LTrie tree ) : System
tree LTrie
Résultat System

RemoveAll() public méthode

Check TransactionCommit in case of RemoveAll with file Recreation. Note if some other threads are reading parallel data, exception will be thrown in their transaction. It's correct.
public RemoveAll ( bool withFileRecreation ) : void
withFileRecreation bool
Résultat void

RemoveKey() public méthode

Will return pointer to the value of the removing kid (if it existed). Otherwise NULL.
public RemoveKey ( byte &key, bool &WasRemoved, bool retrieveDeletedValue, byte &deletedValue ) : void
key byte
WasRemoved bool indicates that value existed if true
retrieveDeletedValue bool indicates if we should bind deleted value to the result
deletedValue byte interesting only if WasRemoved = true and retrieveDeletedValue is true
Résultat void

RollBack() public méthode

public RollBack ( ) : void
Résultat void

Save_GM_nodes_Starting_From() public méthode

public Save_GM_nodes_Starting_From ( int index ) : void
index int
Résultat void

TransactionalCommit() public méthode

public TransactionalCommit ( ) : void
Résultat void

TransactionalRollBack() public méthode

public TransactionalRollBack ( ) : void
Résultat void

Property Details

EmptyPointer public_oe property

public byte[] EmptyPointer
Résultat byte[]

LinkToZeroNode public_oe property

public byte[] LinkToZeroNode
Résultat byte[]

RecordsCount public_oe property

Indicates quantity of Records in the table
public ulong RecordsCount
Résultat ulong

Tree public_oe property

public LTrie,DBreeze.LianaTrie Tree
Résultat LTrie