Class DictionaryOfDictionaryWithWAL<TKey1, TKey2, TValue>
Persistent Dictionary of dictionary implementation that is combined
with a WriteAheadLog.
This class is not thread-safe.
Inheritance
DictionaryOfDictionaryWithWAL<TKey1, TKey2, TValue>
Assembly: ZoneTree.dll
Syntax
public sealed class DictionaryOfDictionaryWithWAL<TKey1, TKey2, TValue> : IDisposable
Type Parameters
Name |
Description |
TKey1 |
|
TKey2 |
|
TValue |
|
Constructors
|
Improve this Doc
View Source
DictionaryOfDictionaryWithWAL(long, string, IWriteAheadLogProvider, WriteAheadLogOptions, ISerializer<TKey1>, ISerializer<TKey2>, ISerializer<TValue>)
Declaration
public DictionaryOfDictionaryWithWAL(long segmentId, string category, IWriteAheadLogProvider writeAheadLogProvider, WriteAheadLogOptions options, ISerializer<TKey1> key1Serializer, ISerializer<TKey2> key2Serializer, ISerializer<TValue> valueSerializer)
Parameters
Properties
|
Improve this Doc
View Source
Keys
Declaration
public IReadOnlyList<TKey1> Keys { get; }
Property Value
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; }
Property Value
Methods
|
Improve this Doc
View Source
CompactWriteAheadLog()
Declaration
public void CompactWriteAheadLog()
|
Improve this Doc
View Source
ContainsKey(in TKey1)
Declaration
public bool ContainsKey(in TKey1 key)
Parameters
Type |
Name |
Description |
TKey1 |
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
TryDeleteFromMemory(TKey1)
Declaration
public bool TryDeleteFromMemory(TKey1 key1)
Parameters
Type |
Name |
Description |
TKey1 |
key1 |
|
Returns
|
Improve this Doc
View Source
TryGetDictionary(in TKey1, out IDictionary<TKey2, TValue>)
Declaration
public bool TryGetDictionary(in TKey1 key1, out IDictionary<TKey2, TValue> value)
Parameters
Type |
Name |
Description |
TKey1 |
key1 |
|
IDictionary<TKey2, TValue> |
value |
|
Returns
|
Improve this Doc
View Source
TryGetValue(in TKey1, in TKey2, out TValue)
Declaration
public bool TryGetValue(in TKey1 key1, in TKey2 key2, out TValue value)
Parameters
Type |
Name |
Description |
TKey1 |
key1 |
|
TKey2 |
key2 |
|
TValue |
value |
|
Returns
|
Improve this Doc
View Source
Upsert(in TKey1, in TKey2, in TValue)
Declaration
public bool Upsert(in TKey1 key1, in TKey2 key2, in TValue value)
Parameters
Type |
Name |
Description |
TKey1 |
key1 |
|
TKey2 |
key2 |
|
TValue |
value |
|
Returns
Implements