Exp.DigestModulo Method

Create expression that returns record digest modulo as integer. This expression usually evaluates quickly because record meta data is cached in memory.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
public static Exp DigestModulo(
	int mod
)

Parameters

mod  Int32
 

Return Value

Exp

Example

C#
// Records that have digest(key) % 3 == 1
Exp.EQ(Exp.DigestModulo(3), Exp.Val(1))

See Also