SparseIndexTKeyCanCombineWithSiblings Method
When attempting to remove or combine a node, we must check the parent to find which one will be supported to remove.
Namespace: SnapDB.Snap.TreeAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void CanCombineWithSiblings(
TKey key,
byte level,
out bool canCombineLeft,
out bool canCombineRight
)
Public Sub CanCombineWithSiblings (
key As TKey,
level As Byte,
<OutAttribute> ByRef canCombineLeft As Boolean,
<OutAttribute> ByRef canCombineRight As Boolean
)
public:
void CanCombineWithSiblings(
TKey key,
unsigned char level,
[OutAttribute] bool% canCombineLeft,
[OutAttribute] bool% canCombineRight
)
function CanCombineWithSiblings(key, level, canCombineLeft, canCombineRight);
Parameters
- key TKey
- The lower key of the node that is being combined or removed.
- level Byte
- The level of the node where combination is occurring.
- canCombineLeft Boolean
- Outputs true if this node may be combined with the left node; otherwise, false.
- canCombineRight Boolean
- Outputs true if this node may be combined with the right node; otherwise, false.