SparseIndexTKeyInitialize Method

Creates a sparse index on the tree.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void Initialize(
	BinaryStreamPointerBase stream,
	int blockSize,
	Func<uint> getNextNewNodeIndex,
	byte rootNodeLevel,
	uint rootNodeIndexAddress
)

Parameters

stream  BinaryStreamPointerBase
The stream to use to write the index
blockSize  Int32
The size of each node that will be used by this index.
getNextNewNodeIndex  FuncUInt32
A method to use when additional nodes must be allocated.
rootNodeLevel  Byte
the level of the root node.
rootNodeIndexAddress  UInt32
the address location for the root node.

Exceptions

ExceptionThrow of duplicate calls are made to this function
ArgumentOutOfRangeExceptionThrown if the block size is not large enough to store at least 4 elements.

See Also