C# Класс DBreeze.LianaTrie.LTrieRootNode

Наследование: ITrieRootNode
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
EmptyPointer byte[]
LinkToZeroNode byte[]
RecordsCount ulong
Tree LTrie

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DeserializeRootNode ( ) : void

bytes[] to objects

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

Root to byte[]

Описание методов

AddKey() публичный Метод

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
Результат byte[]

LTrieRootNode() публичный Метод

public LTrieRootNode ( LTrie tree ) : System
tree LTrie
Результат System

RemoveAll() публичный Метод

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
Результат void

RemoveKey() публичный Метод

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
Результат void

RollBack() публичный Метод

public RollBack ( ) : void
Результат void

Save_GM_nodes_Starting_From() публичный Метод

public Save_GM_nodes_Starting_From ( int index ) : void
index int
Результат void

TransactionalCommit() публичный Метод

public TransactionalCommit ( ) : void
Результат void

TransactionalRollBack() публичный Метод

public TransactionalRollBack ( ) : void
Результат void

Описание свойств

EmptyPointer публичное свойство

public byte[] EmptyPointer
Результат byte[]

LinkToZeroNode публичное свойство

public byte[] LinkToZeroNode
Результат byte[]

RecordsCount публичное свойство

Indicates quantity of Records in the table
public ulong RecordsCount
Результат ulong

Tree публичное свойство

public LTrie,DBreeze.LianaTrie Tree
Результат LTrie