Class DiskSegmentOptions
Represents the Disk Segment Options.
Inherited Members
Namespace: Tenray.ZoneTree.Options
Assembly: ZoneTree.dll
Syntax
public sealed class DiskSegmentOptions
Properties
| Improve this Doc View SourceBlockCacheLimit
The disk segment block cache limit. A disk segment cannot have more cache blocks than the limit. Total memory space that block cache can take is = CompressionBlockSize X BlockCacheLimit Default: 1024 * 1024 * 10 * 32 = 320 MB
Declaration
public int BlockCacheLimit { get; set; }
Property Value
Type | Description |
---|---|
int |
BlockCacheReplacementWarningDuration
If the block cache replacement occurs quicker than given duration a warning is created and the circular block cache size is increased automatically. Default value is 1_000 ms;
Declaration
public long BlockCacheReplacementWarningDuration { get; set; }
Property Value
Type | Description |
---|---|
long |
CompressionBlockSize
The disk segment compression block size. Default: 10 MB
Declaration
public int CompressionBlockSize { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionLevel
The compression level of the selected compression method. Default is LZ4Fastest.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionMethod
The compression method if the compression is enabled. Default is LZ4.
Declaration
public CompressionMethod CompressionMethod { get; set; }
Property Value
Type | Description |
---|---|
CompressionMethod |
DiskSegmentMode
Configures the disk segment mode. Default value is MultiPartDiskSegment.
Declaration
public DiskSegmentMode DiskSegmentMode { get; set; }
Property Value
Type | Description |
---|---|
DiskSegmentMode |
EnableCompression
Configures the disk segment compression. Default is true.
Declaration
public bool EnableCompression { get; set; }
Property Value
Type | Description |
---|---|
bool |
MaximumRecordCount
If MultiPartDiskSegment mode is enabled, it is the upper bound record count of a disk segment. A disk segment cannot have record count more than this value. Default value is 3M.
Declaration
public int MaximumRecordCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MinimumRecordCount
If MultiPartDiskSegment mode is enabled, the minimum record count cannot be lower than this value unless there isn't enough records. Default value is 1.5M.
Declaration
public int MinimumRecordCount { get; set; }
Property Value
Type | Description |
---|---|
int |