Search Results for

    Show / Hide Table of Contents

    Class DictionaryWithWAL<TKey, TValue>

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

    Inheritance
    object
    DictionaryWithWAL<TKey, 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 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
    Type Name Description
    long segmentId
    string category
    IWriteAheadLogProvider writeAheadLogProvider
    WriteAheadLogOptions options
    ISerializer<TKey> keySerializer
    ISerializer<TValue> valueSerializer
    IRefComparer<TKey> comparer
    IsValueDeletedDelegate<TValue> isValueDeleted
    MarkValueDeletedDelegate<TValue> markValueDeleted

    Properties

    | Improve this Doc View Source

    Enumerable

    Declaration
    public IEnumerable<KeyValuePair<TKey, TValue>> Enumerable { get; }
    Property Value
    Type Description
    IEnumerable<KeyValuePair<TKey, TValue>>
    | Improve this Doc View Source

    Keys

    Declaration
    public TKey[] Keys { get; }
    Property Value
    Type Description
    TKey[]
    | Improve this Doc View Source

    Length

    Declaration
    public int Length { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    LogLength

    Declaration
    public int LogLength { get; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    Values

    Declaration
    public IReadOnlyList<TValue> Values { get; }
    Property Value
    Type Description
    IReadOnlyList<TValue>

    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
    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

    TryDelete(in TKey)

    Declaration
    public bool TryDelete(in TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    TryDeleteFromMemory(in TKey)

    Declaration
    public bool TryDeleteFromMemory(in TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    bool
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool

    Implements

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