Search Results for

    Show / Hide Table of Contents

    Interface ITransactionLog<TKey, TValue>

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

    Properties

    | Improve this Doc View Source

    CompactionThreshold

    The total amount of transactions to be kept in memory.

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

    TransactionCount

    Transaction count in the memory.

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

    TransactionIds

    Return all transaction ids that are available in memory.

    Declaration
    IReadOnlyList<long> TransactionIds { get; }
    Property Value
    Type Description
    IReadOnlyList<long>
    | Improve this Doc View Source

    UncommittedTransactionIds

    Returns all uncommitted transaction ids.

    Declaration
    IReadOnlyList<long> UncommittedTransactionIds { get; }
    Property Value
    Type Description
    IReadOnlyList<long>

    Methods

    | Improve this Doc View Source

    AddDependency(long, long)

    Declaration
    void AddDependency(long src, long dest)
    Parameters
    Type Name Description
    long src
    long dest
    | Improve this Doc View Source

    AddHistoryRecord(long, TKey, CombinedValue<TValue, long>)

    Declaration
    void AddHistoryRecord(long transactionId, TKey key, CombinedValue<TValue, long> combinedValue)
    Parameters
    Type Name Description
    long transactionId
    TKey key
    CombinedValue<TValue, long> combinedValue
    | Improve this Doc View Source

    AddOrUpdateReadWriteStamp(in TKey, in ReadWriteStamp)

    Declaration
    bool AddOrUpdateReadWriteStamp(in TKey key, in ReadWriteStamp readWriteStamp)
    Parameters
    Type Name Description
    TKey key
    ReadWriteStamp readWriteStamp
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    GetDependencyList(long)

    Declaration
    IReadOnlyList<long> GetDependencyList(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    Returns
    Type Description
    IReadOnlyList<long>
    | Improve this Doc View Source

    GetHistory(long)

    Declaration
    IDictionary<TKey, CombinedValue<TValue, long>> GetHistory(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    Returns
    Type Description
    IDictionary<TKey, CombinedValue<TValue, long>>
    | Improve this Doc View Source

    GetNextTransactionId()

    Declaration
    long GetNextTransactionId()
    Returns
    Type Description
    long
    | Improve this Doc View Source

    GetTransactionMeta(long)

    Declaration
    TransactionMeta GetTransactionMeta(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    Returns
    Type Description
    TransactionMeta
    | Improve this Doc View Source

    GetTransactionState(long)

    Declaration
    TransactionState GetTransactionState(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    Returns
    Type Description
    TransactionState
    | Improve this Doc View Source

    GetUncommittedTransactionIdsBefore(DateTime)

    Retrieves all uncommitted transaction ids started before given date-time. This method can be used to gather stale uncommitted transaction ids.

    Declaration
    IReadOnlyList<long> GetUncommittedTransactionIdsBefore(DateTime dateTime)
    Parameters
    Type Name Description
    DateTime dateTime

    Max start time (exclusive)

    Returns
    Type Description
    IReadOnlyList<long>

    Uncommitted ids

    | Improve this Doc View Source

    TransactionAborted(long)

    Declaration
    void TransactionAborted(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    | Improve this Doc View Source

    TransactionCommitted(long)

    Declaration
    void TransactionCommitted(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    | Improve this Doc View Source

    TransactionStarted(long)

    Declaration
    void TransactionStarted(long transactionId)
    Parameters
    Type Name Description
    long transactionId
    | Improve this Doc View Source

    TryGetReadWriteStamp(in TKey, out ReadWriteStamp)

    Declaration
    bool TryGetReadWriteStamp(in TKey key, out ReadWriteStamp readWriteStamp)
    Parameters
    Type Name Description
    TKey key
    ReadWriteStamp readWriteStamp
    Returns
    Type Description
    bool
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io