GenericEncodedNodeTKey, TValue Constructor

Initializes a new instance of the GenericEncodedNodeTKey, TValue class.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public GenericEncodedNode(
	PairEncodingBase<TKey, TValue> encoding,
	byte level
)

Parameters

encoding  PairEncodingBaseTKey, TValue
The encoding method used for key-value pairs in the node.
level  Byte
The level of the node within the tree structure.

Remarks

This constructor creates a new node with the specified level and initializes key and value instances for use in the node. It associates the provided encoding method with the node and sets up event handlers for node index changes and cache clearing. The level should typically be 0, as this type of node is typically used at the leaf level of the tree.

See Also