Click or drag to resize

BTreeBaseKey, ValueGetKeyId Method (Key, Byte)

When Key type implements IOptimizedPersistable, you can use this function to get the Id of the persistent object instead of the entire object. Use for performance reasons in certain cases where reading the object isn't desired. To avoid opening the object, a comparison array which is flagged as complete key must be used.

Namespace:  VelocityDb.Collection.BTree
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public ulong GetKeyId(
	Key key,
	byte[] comparisonArray
)

Parameters

key
Type: Key
Transient lookup object of type Key (which in this case must be implementing IOptimizedPersistable
comparisonArray
Type: SystemByte
A byte containing bytes to be compared with.

Return Value

Type: UInt64
The Id of the corresponding persistent object or 0 if not persistent or not implementing IOptimizedPersistable
See Also