C# Class DBreeze.LianaTrie.NestedTablesCoordinator

Represents a bound to the LTrie nested tables coordinator. 1. Gets ability to remember Inserted Tables to perform cascade commit. 2. Rebind internal root-start if 2 or more horizontal tables are inserted into 1 value during one transaction (value expand case)
Inheritance: IDisposable
Show file Open project: hhblaze/DBreeze

Public Properties

Property Type Description
Sync_NestedTables DBreeze.Utils.DbReaderWriterLock

Public Methods

Method Description
CloseTable ( byte &key, long &rootStart ) : void
Dispose ( ) : void
Remove ( byte &key ) : void

Cascade remove all of all nested and sub-nested tables under the key

RemoveAll ( ) : void

Private Methods

Method Description
AddNestedTable ( byte &key, ulong fullValueStart, long rootStart, NestedTableInternal nestedTable ) : void

LTrie makes in case of InsertTable call

ChangeKeyAndMoveNestedTablesRootStart ( byte &oldKey, byte &newKey, ulong idNewFullValueStart, long valueStart ) : void
CloseAll ( ) : void
Commit ( ) : void

Committing nested tables

GetTable ( byte &key, long rootStart ) : NestedTableInternal

Returns null if table is not in the coordinator, otherwise returns reference to the table

IfKeyIsInNestedList ( byte &key ) : bool
MoveNestedTablesRootStart ( byte &key, ulong idNewFullValueStart, long valueStart ) : void
Rollback ( ) : void
TransactionalCommit ( ) : void

Transactional Commit Nested

TransactionalCommitFinished ( ) : void

Committing nested tables

TransactionalRollback ( ) : void

Transactional Rollback nested

Method Details

CloseTable() public method

public CloseTable ( byte &key, long &rootStart ) : void
key byte
rootStart long
return void

Dispose() public method

public Dispose ( ) : void
return void

Remove() public method

Cascade remove all of all nested and sub-nested tables under the key
public Remove ( byte &key ) : void
key byte
return void

RemoveAll() public method

public RemoveAll ( ) : void
return void

Property Details

Sync_NestedTables public property

public DbReaderWriterLock,DBreeze.Utils Sync_NestedTables
return DBreeze.Utils.DbReaderWriterLock