ExpUnknown Method

Create unknown value. Used to intentionally fail an expression. The failure can be ignored with EVAL_NO_FAIL or EVAL_NO_FAIL Requires server version 5.6.0+.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Unknown()

Return Value

Exp

Example

C#
// double v = balance - 100.0;
// return (v > 0.0)? v : unknown;
Exp.Let(
  Exp.Def("v", Exp.Sub(Exp.FloatBin("balance"), Exp.Val(100.0))),
  Exp.Cond(
    Exp.GE(Exp.var("v"), Exp.Val(0.0)), Exp.Var("v"),
    Exp.Unknown()));

See Also