StreamingClientDatabaseTKey, TValue Class

A socket based client that extends connecting to a database.

Definition

Namespace: SnapDB.Snap.Services.Net
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class StreamingClientDatabase<TKey, TValue> : ClientDatabaseBase<TKey, TValue>
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>
Inheritance
Object    ClientDatabaseBase    ClientDatabaseBaseTKey, TValue    StreamingClientDatabaseTKey, TValue

Type Parameters

TKey
The key type.
TValue
The value type.

Constructors

StreamingClientDatabaseTKey, TValue Creates a streaming wrapper around a database.

Properties

Info Gets basic information about the current Database.
(Overrides ClientDatabaseBaseInfo)
IsDisposed Gets if has been disposed.
(Overrides ClientDatabaseBaseIsDisposed)

Methods

AttachFilesOrPaths Loads the provided files from all of the specified paths.
(Overrides ClientDatabaseBaseAttachFilesOrPaths(IEnumerableString))
DeleteFiles Deletes the list of files from the database.
(Overrides ClientDatabaseBaseDeleteFiles(ListGuid))
DetachFiles Detaches the list of files from the database.
(Overrides ClientDatabaseBaseDetachFiles(ListGuid))
Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Overrides ClientDatabaseBaseDispose)
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.
(Overrides ClientDatabaseBaseGetAllAttachedFiles)
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.
(Overrides ClientDatabaseBaseHardCommit)
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.
(Overrides ClientDatabaseBaseTKey, TValueRead(SortedTreeEngineReaderOptions, SeekFilterBaseTKey, MatchFilterBaseTKey, TValue))
SetEncodingMode Defines the encoding method to use for the server.
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.
(Overrides ClientDatabaseBaseSoftCommit)
StartBulkWriting Due to the blocking nature of streams, this helper class can substantially improve the performance of writing streaming points to the historian.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Write(TreeStreamTKey, TValue) Writes the tree stream to the database.
(Overrides ClientDatabaseBaseTKey, TValueWrite(TreeStreamTKey, TValue))
Write(TKey, TValue) Writes an individual key/value to the sorted tree store.
(Overrides ClientDatabaseBaseTKey, TValueWrite(TKey, TValue))

See Also