ClientDatabaseBaseTKey, TValue Class

Represents a single historian database.

Definition

Namespace: SnapDB.Snap.Services
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public abstract class ClientDatabaseBase<TKey, TValue> : ClientDatabaseBase, 
	IDatabaseReader<TKey, TValue>, IDisposable
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>
Inheritance
Object    ClientDatabaseBase    ClientDatabaseBaseTKey, TValue
Derived
Implements
IDatabaseReaderTKey, TValue, IDisposable

Type Parameters

TKey
The key type used in the sorted tree table.
TValue
The value type used in the sorted tree table.

Constructors

ClientDatabaseBaseTKey, TValueInitializes a new instance of the ClientDatabaseBaseTKey, TValue class

Properties

Info Gets basic information about the current Database.
(Inherited from ClientDatabaseBase)
IsDisposed Checks isDisposed status.
(Inherited from ClientDatabaseBase)

Methods

AttachFilesOrPaths Loads the provided files from all of the specified paths.
(Inherited from ClientDatabaseBase)
DeleteFiles Deletes the list of files from the database.
(Inherited from ClientDatabaseBase)
DetachFiles Detaches the list of files from the database.
(Inherited from ClientDatabaseBase)
Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from ClientDatabaseBase)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAllAttachedFiles Enumerates all of the files attached to the database.
(Inherited from ClientDatabaseBase)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
HardCommit Forces a commit to the disk subsystem. Once this returns, the data will not be lost due to an application crash or unexpected shutdown. Hard commits can take 100ms or longer depending on how much data has to be committed. This requires two consecutive hardware cache flushes.
(Inherited from ClientDatabaseBase)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Read Reads data from the SortedTreeEngine with the provided read options and server side filters.
SoftCommit Forces a soft commit on the database. A soft commit only commits data to memory. This allows other clients to read the data. While soft committed, this data could be lost during an unexpected shutdown. Soft commits usually occur within microseconds.
(Inherited from ClientDatabaseBase)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Write(TreeStreamTKey, TValue) Writes the tree stream to the database.
Write(TKey, TValue) Writes an individual key/value to the sorted tree store.

See Also