Search Results for

    Show / Hide Table of Contents

    Interface IWriteAheadLog<TKey, TValue>

    Inherited Members
    IDisposable.Dispose()
    Namespace: Tenray.ZoneTree.WAL
    Assembly: ZoneTree.dll
    Syntax
    public interface IWriteAheadLog<TKey, TValue> : IDisposable
    Type Parameters
    Name Description
    TKey
    TValue

    Properties

    | Improve this Doc View Source

    EnableIncrementalBackup

    Declaration
    bool EnableIncrementalBackup { get; set; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    FilePath

    Declaration
    string FilePath { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    InitialLength

    The initial record count of the log. It is available after the ReadLogEntries call.

    Declaration
    int InitialLength { get; }
    Property Value
    Type Description
    int

    Methods

    | Improve this Doc View Source

    Append(in TKey, in TValue, long)

    Declaration
    void Append(in TKey key, in TValue value, long opIndex)
    Parameters
    Type Name Description
    TKey key
    TValue value
    long opIndex
    | Improve this Doc View Source

    Drop()

    Declaration
    void Drop()
    | Improve this Doc View Source

    MarkFrozen()

    Informs the write ahead log that no further writes will be sent. to let WAL optimize itself.

    Declaration
    void MarkFrozen()
    | Improve this Doc View Source

    ReadLogEntries(bool, bool, bool)

    Declaration
    WriteAheadLogReadLogEntriesResult<TKey, TValue> ReadLogEntries(bool stopReadOnException, bool stopReadOnChecksumFailure, bool sortByOpIndexes)
    Parameters
    Type Name Description
    bool stopReadOnException
    bool stopReadOnChecksumFailure
    bool sortByOpIndexes
    Returns
    Type Description
    WriteAheadLogReadLogEntriesResult<TKey, TValue>
    | Improve this Doc View Source

    ReplaceWriteAheadLog(TKey[], TValue[], bool)

    Replaces the entire write ahead log, with given keys and values. If enabled, appends current wal data to the incremental backup log.

    Declaration
    long ReplaceWriteAheadLog(TKey[] keys, TValue[] values, bool disableBackup)
    Parameters
    Type Name Description
    TKey[] keys

    new keys

    TValue[] values

    new values

    bool disableBackup

    disable backup regardless of wal flag.

    Returns
    Type Description
    long

    the difference: old file length - new file length.

    | Improve this Doc View Source

    TruncateIncompleteTailRecord(IncompleteTailRecordFoundException)

    Truncates incomplete tail record.

    Declaration
    void TruncateIncompleteTailRecord(IncompleteTailRecordFoundException incompleteTailException)
    Parameters
    Type Name Description
    IncompleteTailRecordFoundException incompleteTailException
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io