Class DiskSegmentOptions
Represents the configuration options for disk segments in the ZoneTree.
Inherited Members
Namespace: Tenray.ZoneTree.Options
Assembly: ZoneTree.dll
Syntax
public sealed class DiskSegmentOptions
Properties
| Improve this Doc View SourceCompressionBlockSize
Gets or sets the block size for disk segment compression, in bytes. Default value is 4 MB (4 * 1024 * 1024 bytes).
Declaration
public int CompressionBlockSize { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionLevel
Gets or sets the compression level for the selected compression method. Default value is LZ4Fastest.
Declaration
public int CompressionLevel { get; set; }
Property Value
Type | Description |
---|---|
int |
CompressionMethod
Gets or sets the compression method used if compression is enabled. Default value is LZ4.
Declaration
public CompressionMethod CompressionMethod { get; set; }
Property Value
Type | Description |
---|---|
CompressionMethod |
DefaultSparseArrayStepSize
Gets or sets the default step size for the default sparse array of disk segments. Setting the step size to zero disables loading and creating the default sparse array. Default value is 1024.
Declaration
public int DefaultSparseArrayStepSize { get; set; }
Property Value
Type | Description |
---|---|
int |
DiskSegmentMode
Gets or sets the mode for the disk segment. Default value is MultiPartDiskSegment.
Declaration
public DiskSegmentMode DiskSegmentMode { get; set; }
Property Value
Type | Description |
---|---|
DiskSegmentMode |
KeyCacheRecordLifeTimeInMillisecond
Gets or sets the maximum lifetime of a record in the key cache, in milliseconds. Default value is 10,000 milliseconds (10 seconds).
Declaration
public int KeyCacheRecordLifeTimeInMillisecond { get; set; }
Property Value
Type | Description |
---|---|
int |
KeyCacheSize
Gets or sets the size of the circular buffer cache for keys. This cache is checked before accessing the block cache during lookups and searches. Default value is 1024.
Declaration
public int KeyCacheSize { get; set; }
Property Value
Type | Description |
---|---|
int |
MaximumRecordCount
Gets or sets the maximum number of records allowed in a disk segment when MultiPartDiskSegment is enabled. Default value is 3M records.
Declaration
public int MaximumRecordCount { get; set; }
Property Value
Type | Description |
---|---|
int |
MinimumRecordCount
Gets or sets the minimum number of records required in a disk segment when MultiPartDiskSegment is enabled, unless there are not enough records. Default value is 1.5M records.
Declaration
public int MinimumRecordCount { get; set; }
Property Value
Type | Description |
---|---|
int |
ValueCacheRecordLifeTimeInMillisecond
Gets or sets the maximum lifetime of a record in the value cache, in milliseconds. Default value is 10,000 milliseconds (10 seconds).
Declaration
public int ValueCacheRecordLifeTimeInMillisecond { get; set; }
Property Value
Type | Description |
---|---|
int |
ValueCacheSize
Gets or sets the size of the circular buffer cache for values. This cache is checked before accessing the block cache during lookups and searches. Default value is 1024.
Declaration
public int ValueCacheSize { get; set; }
Property Value
Type | Description |
---|---|
int |