C# Class DBreeze.Storage.MSR

DBreeze random and sequential disk IO buffers implementation. Specially designed for DBreeze specific storage format. Not for common usage.
Inheritance: IStorage
Show file Open project: hhblaze/DBreeze

Public Properties

Property Type Description
IsOperable bool
MaxRollbackFileSize int
maxRandomBufferSize int
maxRandomElementsCount int

Public Methods

Method Description
Commit ( ) : void

Cleans all buffers and flushes data to the disk

FlushRandomBuffer ( ) : void

Is called only from lock_fs and must be finished by calling NET_Flush

MSR ( string fileName, TrieSettings trieSettings, DBreezeConfiguration configuration ) : System
RecreateFiles ( ) : void

RestoreTableFromTheOtherTable ( string newTableFullPath ) : void
Rollback ( ) : void

Standard and transactional rollback

Table_Dispose ( ) : void

Table_Read ( bool useCache, byte offset, int count ) : byte[]

Table_Read ( bool useCache, long offset, int count ) : byte[]

Table_WriteByOffset ( byte offset, byte data ) : void

Table_WriteByOffset ( long offset, byte data ) : void

Table_WriteToTheEnd ( byte data ) : byte[]

TransactionalCommit ( ) : void

TransactionalCommitIsFinished ( ) : void

TransactionalRollback ( ) : void

Private Methods

Method Description
InitFiles ( ) : void

Method Details

Commit() public method

Cleans all buffers and flushes data to the disk
public Commit ( ) : void
return void

FlushRandomBuffer() public method

Is called only from lock_fs and must be finished by calling NET_Flush
public FlushRandomBuffer ( ) : void
return void

MSR() public method

public MSR ( string fileName, TrieSettings trieSettings, DBreezeConfiguration configuration ) : System
fileName string
trieSettings TrieSettings
configuration DBreezeConfiguration
return System

RecreateFiles() public method

public RecreateFiles ( ) : void
return void

RestoreTableFromTheOtherTable() public method

public RestoreTableFromTheOtherTable ( string newTableFullPath ) : void
newTableFullPath string
return void

Rollback() public method

Standard and transactional rollback
public Rollback ( ) : void
return void

Table_Dispose() public method

public Table_Dispose ( ) : void
return void

Table_Read() public method

public Table_Read ( bool useCache, byte offset, int count ) : byte[]
useCache bool if actual overwritten data must be used
offset byte
count int
return byte[]

Table_Read() public method

public Table_Read ( bool useCache, long offset, int count ) : byte[]
useCache bool
offset long
count int
return byte[]

Table_WriteByOffset() public method

public Table_WriteByOffset ( byte offset, byte data ) : void
offset byte
data byte
return void

Table_WriteByOffset() public method

public Table_WriteByOffset ( long offset, byte data ) : void
offset long
data byte
return void

Table_WriteToTheEnd() public method

public Table_WriteToTheEnd ( byte data ) : byte[]
data byte
return byte[]

TransactionalCommit() public method

public TransactionalCommit ( ) : void
return void

TransactionalCommitIsFinished() public method

public TransactionalCommitIsFinished ( ) : void
return void

TransactionalRollback() public method

public TransactionalRollback ( ) : void
return void

Property Details

IsOperable public property

Indicates subsystem vitality
public bool IsOperable
return bool

MaxRollbackFileSize public property

Rollback file re-creation after initialization
public int MaxRollbackFileSize
return int

maxRandomBufferSize public property

Random buffer maximal size before flush
public int maxRandomBufferSize
return int

maxRandomElementsCount public property

public int maxRandomElementsCount
return int