Search Results for

    Show / Hide Table of Contents

    Interface IMaintainer

    The maintainer for ZoneTree to control merge operations and memory compaction.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Tenray.ZoneTree
    Assembly: ZoneTree.dll
    Syntax
    public interface IMaintainer : IDisposable
    Remarks

    You must complete or cancel all pending tasks of this maintainer before disposing.

    Properties

    | Improve this Doc View Source

    DiskSegmentBufferLifeTime

    Sets or gets Disk Segment block cache life time in milliseconds. Default value is 10_000 milliseconds.

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

    EnableJobForCleaningInactiveCaches

    Gets or sets a value indicating whether a periodic timer is enabled to release unused block and key/value record caches in the disk segment. Changing this property will start or stop the periodic timer accordingly. The default value is false.

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

    InactiveBlockCacheCleanupInterval

    Gets or sets the interval for the periodic timer that triggers the cleanup job. The default value is 5 seconds.

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

    MaximumReadOnlySegmentCount

    Starts merge operation when read-only segments count exceeds this value. Default value is 64.

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

    MinimumSparseArrayLength

    Minimum sparse array length when a new disk segment is created. Default value is 0.

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

    SparseArrayStepLength

    Configures sparse array step length when the disk segment length is bigger than MinimumSparseArrayLength * SparseArrayStepLength. The default value is 1000. The sparse array length reduce binary lookup range on disk segment to reduce IO.

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

    ThresholdForMergeOperationStart

    Starts merge operation when records count in read-only segments exceeds this value. Default value is 0.

    Declaration
    int ThresholdForMergeOperationStart { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Improve this Doc View Source

    WaitForBackgroundThreads()

    Waits until all running tasks are completed.

    Declaration
    void WaitForBackgroundThreads()
    | Improve this Doc View Source

    TryCancelBackgroundThreads()

    Tries cancel running tasks.

    Declaration
    void TryCancelBackgroundThreads()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io