C# 클래스 DBreeze.LianaTrie.LTrieGenerationNode

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

공개 프로퍼티들

프로퍼티 타입 설명
KidsBeforeModification byte[]
KidsInNode LTrieKidsInNode
Pointer byte[]
ToChangeParentNode bool
ToRemoveFromParentNode bool
ToWrite bool
Value byte

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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[]

메소드 상세

GetKidAsValue() 공개 메소드

public GetKidAsValue ( bool searchForAValue, int kid ) : LTrieKid
searchForAValue bool
kid int
리턴 LTrieKid

LTrieGenerationNode() 공개 메소드

public LTrieGenerationNode ( LTrieRootNode rootNode ) : System
rootNode LTrieRootNode
리턴 System

ReadSelf() 공개 메소드

public ReadSelf ( bool useCache, byte generationMapLine ) : void
useCache bool
generationMapLine byte
리턴 void

RemoveAllKids() 공개 메소드

public RemoveAllKids ( ) : void
리턴 void

RemoveKid() 공개 메소드

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
리턴 bool

RemoveKidPointer() 공개 메소드

public RemoveKidPointer ( byte kid ) : void
kid byte
리턴 void

SetupKidPointer() 공개 메소드

public SetupKidPointer ( byte kid, byte ptr ) : void
kid byte
ptr byte
리턴 void

SetupKidWithValue() 공개 메소드

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
리턴 LTrieSetupKidResult

SetupKidWithValuePartially() 공개 메소드

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
리턴 LTrieSetupKidResult

WriteSelf() 공개 메소드

public WriteSelf ( byte generationMapLine ) : void
generationMapLine byte
리턴 void

프로퍼티 상세

KidsBeforeModification 공개적으로 프로퍼티

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
리턴 byte[]

KidsInNode 공개적으로 프로퍼티

public LTrieKidsInNode,DBreeze.LianaTrie KidsInNode
리턴 LTrieKidsInNode

Pointer 공개적으로 프로퍼티

public byte[] Pointer
리턴 byte[]

ToChangeParentNode 공개적으로 프로퍼티

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
리턴 bool

ToRemoveFromParentNode 공개적으로 프로퍼티

public bool ToRemoveFromParentNode
리턴 bool

ToWrite 공개적으로 프로퍼티

public bool ToWrite
리턴 bool

Value 공개적으로 프로퍼티

public byte Value
리턴 byte