IBank ObjectToShardingID Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Returns ULONG for an object so any object (i.e. a string) may be used as a sharding key. Suppose a string needs to be used for sharding, this method translates a string into a 64 bit hash expressed as ulong

Namespace: NFX.DataAccess.Distributed
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

ulong ObjectToShardingID(
	Object key
)

Parameters

key
Type: OnlineSystem Object
An object used for sharding ID translation

Return Value

Type: OnlineUInt64
UInt64 that represents the sharding ID
See Also