Search Results for

    Show / Hide Table of Contents

    Class DictionaryOfDictionaryWithWAL<TKey1, TKey2, TValue>

    Persistent Dictionary of dictionary implementation that is combined with a WriteAheadLog. This class is not thread-safe.

    Inheritance
    object
    DictionaryOfDictionaryWithWAL<TKey1, TKey2, TValue>
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tenray.ZoneTree.Collections
    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
    Type Name Description
    long segmentId
    string category
    IWriteAheadLogProvider writeAheadLogProvider
    WriteAheadLogOptions options
    ISerializer<TKey1> key1Serializer
    ISerializer<TKey2> key2Serializer
    ISerializer<TValue> valueSerializer

    Properties

    | Improve this Doc View Source

    Keys

    Declaration
    public IReadOnlyList<TKey1> Keys { get; }
    Property Value
    Type Description
    IReadOnlyList<TKey1>
    | Improve this Doc View Source

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    int

    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
    Type Description
    bool
    | Improve this Doc View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Drop()

    Declaration
    public void Drop()
    | Improve this Doc View Source

    TryDeleteFromMemory(TKey1)

    Declaration
    public bool TryDeleteFromMemory(TKey1 key1)
    Parameters
    Type Name Description
    TKey1 key1
    Returns
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io