C# 클래스 DBreeze.LianaTrie.LTrieRootNode

상속: ITrieRootNode
파일 보기 프로젝트 열기: hhblaze/DBreeze 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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