DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
|
Public Member Functions | |
override void | Lock () |
This method is called before the start of a sequence of Write commands between consistant states of some data structure represented by the store. More... | |
override void | Unlock () |
This method is called after the end of a sequence of Write commands between consistant states of some data structure represented by the store. More... | |
Public Member Functions inherited from Deveel.Data.Store.StoreBase | |
bool | Open () |
void | Close () |
void | Dispose () |
IArea | CreateArea (long size) |
Allocates a block of memory in the store of the specified size and returns an IArea object that can be used to initialize the contents of the area. More... | |
void | DeleteArea (long id) |
Deletes an area that was previously allocated by the CreateArea method by the area id. More... | |
IArea | GetArea (long id, bool readOnly) |
Returns an object that allows for the contents of an area (represented by the id parameter) to be Read. More... | |
IEnumerable< long > | GetAllAreas () |
Returns a complete list of pointers to all areas in the Store as long objects sorted from lowest pointer to highest. More... | |
Protected Member Functions | |
override void | SetDataAreaSize (long length) |
override void | OpenStore (bool readOnly) |
override void | CloseStore () |
override int | Read (long offset, byte[] buffer, int index, int length) |
override void | Write (long offset, byte[] buffer, int index, int length) |
override void | Dispose (bool disposing) |
Protected Member Functions inherited from Deveel.Data.Store.StoreBase | |
StoreBase (bool isReadOnly) | |
void | ReadAreaHeader (long offset, long[] header) |
void | SplitArea (long offset, long newBoundary) |
int | ReadByte (long offset) |
void | Write (long offset, byte value) |
Package Functions | |
SingleFileStore (SingleFileStoreSystem system, string name, int id) | |
void | Create (int bufferSize) |
void | WriteTo (Stream stream) |
Package Functions inherited from Deveel.Data.Store.StoreBase | |
IEnumerable< long > | FindAllocatedAreasNotIn (List< long > usedAreas) |
Properties | |
string | Name [get, private set] |
int | Id [get, private set] |
bool | IsOpen [get, private set] |
object | CheckPointLock [get] |
override long | DataAreaEndOffset [get] |
long | DataLength [get] |
Properties inherited from Deveel.Data.Store.StoreBase | |
long | WildernessOffset [get, set] |
bool | IsReadOnly [get, private set] |
abstract long | DataAreaEndOffset [get] |
bool | ClosedClean [get, private set] |
Properties inherited from Deveel.Data.Store.IStore | |
bool | ClosedClean [get] |
Indicates if the store was closed cleanly last time was accessed. More... | |
Private Attributes | |
SingleFileStoreSystem | system |
Stream | dataStream |
int | lockCount |
bool | disposed |
Definition at line 25 of file SingleFileStore.cs.
|
inlinepackage |
Definition at line 32 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Store.StoreBase.
Definition at line 99 of file SingleFileStore.cs.
|
inlinepackage |
Definition at line 66 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Reimplemented from Deveel.Data.Store.StoreBase.
Definition at line 127 of file SingleFileStore.cs.
|
inlinevirtual |
This method is called before the start of a sequence of Write commands between consistant states of some data structure represented by the store.
This Lock mechanism is intended to inform the store when it is not safe to checkpoint the data in a log, ensuring that no partial updates are committed to a transaction log and the data can be restored in a consistant manner.
If the store does not implement a check point log or is otherwise not interested in consistant states of the data, then it is not necessary for this method to do anything.
This method prevents a check point from happening during some sequence of operations. This method should not Lock unless a check point is in progress. This method does not prevent concurrent writes to the store.
Implements Deveel.Data.Store.StoreBase.
Definition at line 73 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Store.StoreBase.
Definition at line 85 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Store.StoreBase.
Definition at line 106 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Store.StoreBase.
Definition at line 59 of file SingleFileStore.cs.
|
inlinevirtual |
This method is called after the end of a sequence of Write commands between consistant states of some data structure represented by the store.
See the Lock method for a further description of the operation of this locking mechanism.
Implements Deveel.Data.Store.StoreBase.
Definition at line 77 of file SingleFileStore.cs.
|
inlineprotectedvirtual |
Implements Deveel.Data.Store.StoreBase.
Definition at line 116 of file SingleFileStore.cs.
|
inlinepackage |
Definition at line 145 of file SingleFileStore.cs.
|
private |
Definition at line 27 of file SingleFileStore.cs.
|
private |
Definition at line 125 of file SingleFileStore.cs.
|
private |
Definition at line 30 of file SingleFileStore.cs.
|
private |
Definition at line 26 of file SingleFileStore.cs.
|
getprivate |
Definition at line 45 of file SingleFileStore.cs.
|
getprotected |
Definition at line 49 of file SingleFileStore.cs.
|
get |
Definition at line 53 of file SingleFileStore.cs.
|
getprivate set |
Definition at line 41 of file SingleFileStore.cs.
|
getprivate set |
Definition at line 43 of file SingleFileStore.cs.
|
getprivate set |
Definition at line 39 of file SingleFileStore.cs.