FixedSizeNodeTKey, TValueRemoveUnlessOverflow Method

Removes a key-value pair at the specified index unless it would cause an overflow.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected override bool RemoveUnlessOverflow(
	int index
)

Parameters

index  Int32
The index of the key-value pair to be removed.

Return Value

Boolean
true if the key-value pair was successfully removed; otherwise, false.

Remarks

This method removes the key-value pair at the specified index unless removing it would result in an overflow, in which case, it will not remove the pair. Overflow occurs when the node can't accommodate the removal while maintaining its size constraints.

Exceptions

IndexOutOfRangeExceptionThrown if the provided index is out of range.

See Also