C# Class Deveel.Data.Store.StoreBase

Inheritance: IStore
Exibir arquivo Open project: deveel/deveeldb Class Usage Examples

Private Properties

Property Type Description
AddToBinChain void
Alloc long
CheckOffset void
CoalesceArea void
CropArea void
ExpandDataArea long
FindAllocatedAreasNotIn IEnumerable
Free void
GetNextAreaHeader long
GetPreviousAreaHeader long
Init void
IsValidBoundarySize bool
MinimumBinSizeIndex int
ReadBins void
ReboundArea void
RemoveFromBinChain void
WriteBinIndex void

Public Methods

Method Description
Close ( ) : void
CreateArea ( long size ) : IArea
DeleteArea ( long id ) : void
Dispose ( ) : void
GetAllAreas ( ) : IEnumerable
GetArea ( long id, bool readOnly ) : IArea
Lock ( ) : void
Open ( ) : bool
Unlock ( ) : void

Protected Methods

Method Description
CloseStore ( ) : void
Dispose ( bool disposing ) : void
OpenStore ( bool readOnly ) : void
Read ( long offset, byte buffer, int index, int length ) : int
ReadAreaHeader ( long offset, long header ) : void
ReadByte ( long offset ) : int
SetDataAreaSize ( long length ) : void
SplitArea ( long offset, long newBoundary ) : void
StoreBase ( bool isReadOnly ) : System
Write ( long offset, byte value ) : void
Write ( long offset, byte buffer, int index, int length ) : void

Private Methods

Method Description
AddToBinChain ( long pointer, long size ) : void
Alloc ( long size ) : long
CheckOffset ( long offset ) : void
CoalesceArea ( long offset, long size ) : void
CropArea ( long offset, long allocatedSize ) : void
ExpandDataArea ( long minSize ) : long
FindAllocatedAreasNotIn ( List usedAreas ) : IEnumerable
Free ( long pointer ) : void
GetNextAreaHeader ( long offset, long header ) : long
GetPreviousAreaHeader ( long offset, long header ) : long
Init ( ) : void
IsValidBoundarySize ( long size ) : bool
MinimumBinSizeIndex ( long size ) : int
ReadBins ( ) : void
ReboundArea ( long offset, long header, bool writeHeaders ) : void
RemoveFromBinChain ( long offset, long size ) : void
WriteBinIndex ( int index ) : void

Method Details

Close() public method

public Close ( ) : void
return void

CloseStore() protected abstract method

protected abstract CloseStore ( ) : void
return void

CreateArea() public method

public CreateArea ( long size ) : IArea
size long
return IArea

DeleteArea() public method

public DeleteArea ( long id ) : void
id long
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAllAreas() public method

public GetAllAreas ( ) : IEnumerable
return IEnumerable

GetArea() public method

public GetArea ( long id, bool readOnly ) : IArea
id long
readOnly bool
return IArea

Lock() public abstract method

public abstract Lock ( ) : void
return void

Open() public method

public Open ( ) : bool
return bool

OpenStore() protected abstract method

protected abstract OpenStore ( bool readOnly ) : void
readOnly bool
return void

Read() protected abstract method

protected abstract Read ( long offset, byte buffer, int index, int length ) : int
offset long
buffer byte
index int
length int
return int

ReadAreaHeader() protected method

protected ReadAreaHeader ( long offset, long header ) : void
offset long
header long
return void

ReadByte() protected method

protected ReadByte ( long offset ) : int
offset long
return int

SetDataAreaSize() protected abstract method

protected abstract SetDataAreaSize ( long length ) : void
length long
return void

SplitArea() protected method

protected SplitArea ( long offset, long newBoundary ) : void
offset long
newBoundary long
return void

StoreBase() protected method

protected StoreBase ( bool isReadOnly ) : System
isReadOnly bool
return System

Unlock() public abstract method

public abstract Unlock ( ) : void
return void

Write() protected method

protected Write ( long offset, byte value ) : void
offset long
value byte
return void

Write() protected abstract method

protected abstract Write ( long offset, byte buffer, int index, int length ) : void
offset long
buffer byte
index int
length int
return void