Class DictionaryWithWAL<TKey, TValue>
Persistent Dictionary implementation that is combined
with a WriteAheadLog.
This class is not thread-safe.
Inheritance
DictionaryWithWAL<TKey, TValue>
Assembly: ZoneTree.dll
Syntax
public sealed class DictionaryWithWAL<TKey, TValue> : IDisposable
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
DictionaryWithWAL(long, string, IWriteAheadLogProvider, WriteAheadLogOptions, ISerializer<TKey>, ISerializer<TValue>, IRefComparer<TKey>, IsValueDeletedDelegate<TValue>, MarkValueDeletedDelegate<TValue>)
Declaration
public DictionaryWithWAL(long segmentId, string category, IWriteAheadLogProvider writeAheadLogProvider, WriteAheadLogOptions options, ISerializer<TKey> keySerializer, ISerializer<TValue> valueSerializer, IRefComparer<TKey> comparer, IsValueDeletedDelegate<TValue> isValueDeleted, MarkValueDeletedDelegate<TValue> markValueDeleted)
Parameters
Properties
|
Improve this Doc
View Source
Enumerable
Declaration
public IEnumerable<KeyValuePair<TKey, TValue>> Enumerable { get; }
Property Value
|
Improve this Doc
View Source
Keys
Declaration
public TKey[] Keys { get; }
Property Value
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; }
Property Value
|
Improve this Doc
View Source
LogLength
Declaration
public int LogLength { get; }
Property Value
|
Improve this Doc
View Source
Values
Declaration
public IReadOnlyList<TValue> Values { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompactWriteAheadLog()
Declaration
public void CompactWriteAheadLog()
|
Improve this Doc
View Source
ContainsKey(in TKey)
Declaration
public bool ContainsKey(in TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
|
Improve this Doc
View Source
Drop()
Declaration
|
Improve this Doc
View Source
TryDelete(in TKey)
Declaration
public bool TryDelete(in TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
TryDeleteFromMemory(in TKey)
Declaration
public bool TryDeleteFromMemory(in TKey key)
Parameters
Type |
Name |
Description |
TKey |
key |
|
Returns
|
Improve this Doc
View Source
TryGetValue(in TKey, out TValue)
Declaration
public bool TryGetValue(in TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
|
Improve this Doc
View Source
Upsert(in TKey, in TValue)
Declaration
public bool Upsert(in TKey key, in TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Implements