C# Class DBreeze.LianaTrie.LTrieRootNode

Inheritance: ITrieRootNode
显示文件 Open project: hhblaze/DBreeze Class Usage Examples

Public Properties

Property Type Description
EmptyPointer byte[]
LinkToZeroNode byte[]
RecordsCount ulong
Tree LTrie

Public Methods

Method 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

Method Description
DeserializeRootNode ( ) : void

bytes[] to objects

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

Root to byte[]

Method Details

AddKey() public method

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
return byte[]

LTrieRootNode() public method

public LTrieRootNode ( LTrie tree ) : System
tree LTrie
return System

RemoveAll() public method

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
return void

RemoveKey() public method

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
return void

RollBack() public method

public RollBack ( ) : void
return void

Save_GM_nodes_Starting_From() public method

public Save_GM_nodes_Starting_From ( int index ) : void
index int
return void

TransactionalCommit() public method

public TransactionalCommit ( ) : void
return void

TransactionalRollBack() public method

public TransactionalRollBack ( ) : void
return void

Property Details

EmptyPointer public_oe property

public byte[] EmptyPointer
return byte[]

LinkToZeroNode public_oe property

public byte[] LinkToZeroNode
return byte[]

RecordsCount public_oe property

Indicates quantity of Records in the table
public ulong RecordsCount
return ulong

Tree public_oe property

public LTrie,DBreeze.LianaTrie Tree
return LTrie