Click or drag to resize

BtreeTCapacity Property

Gets or sets the order of the underlying B+ tree structure.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public int Capacity { get; set; }

Property Value

Type: Int32
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionWhen supplied value is less than zero.
Remarks

The order of a tree (also known as branching factor) is the maximum number of child nodes that a branch may reference. The minimum number of child node references for a non-rightmost branch is order/2. The maximum number of elements in a leaf is order-1. The minimum number of elements in a non-rightmost leaf is order/2.

Changing this property may degrade performance and is provided for experimental purposes only. The default value of 128 should always be adequate.

Attempts to set this value when Count is non-zero are ignored. Non-negative values below 4 or above 256 are ignored.

See Also