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
)
Public Function GetValueId (
key As Key,
comparisonArray As Byte()
) As ULong
public:
unsigned long long GetValueId(
Key key,
array<unsigned char>^ comparisonArray
)
member GetValueId :
key : 'Key *
comparisonArray : byte[] -> uint64
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:
UInt64The Id of the corresponding value object or 0 if not persistant or not mplementing
IOptimizedPersistableSee Also