PrebufferWriterTKey, TValue Class

Where uncommitted data is collected before it is inserted into an archive file in a bulk operation.

Definition

Namespace: SnapDB.Snap.Services.Writer
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class PrebufferWriter<TKey, TValue> : DisposableLoggingClassBase
where TKey : new(), SnapTypeBase<TKey>
where TValue : new(), SnapTypeBase<TValue>
Inheritance
Object    DisposableLoggingClassBase    PrebufferWriterTKey, TValue

Type Parameters

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

Remarks

This class is thread safe

Constructors

PrebufferWriterTKey, TValue Creates a pre-stage writer.

Properties

LatestTransactionId Gets the latest transaction id which is a sequential counter based on the number of insert operations that have occured.
Log The LogPublisher for logging messages.
(Inherited from DisposableLoggingClassBase)

Methods

CheckDisposed Checks if the class has been disposed, throws an exception if this is the case.
(Inherited from DisposableLoggingClassBase)
Commit Triggers a rollover if the provided transaction id has not yet been triggered. This method does not block
Dispose Releases all the resources used by the DisposableLoggingClassBase object.
(Inherited from DisposableLoggingClassBase)
Dispose(Boolean) Disposes the underlying queues contained in this class. This method is not thread safe. It is assumed this will be called after Stop.
(Overrides Dispose(Boolean))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize This code is here to detect when finalizers are called rather than a class be properly disposed.
(Inherited from DisposableLoggingClassBase)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Stop Stop all writing to this class. Once stopped, it cannot be resumed. All data is then immediately flushed to the output. This method calls Dispose()
ToStringReturns a string that represents the current object.
(Inherited from Object)
Write Writes the provided key/value to the prebuffer

See Also