Click or drag to resize

BTreeMapBaseKey, ValueGetValueId Method (Key, Byte)

When Value 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.

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

Parameters

key
Type: Key
Lookup object of type Key where Value must be implementing IOptimizedPersistable
comparisonArray
Type: SystemByte
A byte containing bytes to be compared with.

Return Value

Type: UInt64
The Id of the corresponding value object or 0 if not persistant or not mplementing IOptimizedPersistable
See Also