Statement SetPredExp Method Aerospike
Set optional predicate expression filters in postfix notation. Predicate expression filters are applied on the query results on the server. Predicate expression filters may occur on any bin in the record. Requires Aerospike Server versions >= 3.12.

This method is redundant because PredExp can now be set in the base Policy for any transaction (including queries).

Postfix notation is described here: Onlinehttp://wiki.c2.com/?PostfixNotation

Example:

            // (c >= 11 and c <= 20) or (d > 3 and (d < 5)
            stmt.SetPredExp(
              PredExp.IntegerBin("c"),
              PredExp.IntegerValue(11),
              PredExp.IntegerGreaterEq(),
              PredExp.IntegerBin("c"),
              PredExp.IntegerValue(20),
              PredExp.IntegerLessEq(),
              PredExp.And(2),
              PredExp.IntegerBin("d"),
              PredExp.IntegerValue(3),
              PredExp.IntegerGreater(),
              PredExp.IntegerBin("d"),
              PredExp.IntegerValue(5),
              PredExp.IntegerLess(),
              PredExp.And(2),
              PredExp.Or(2)
            );
            
            // Record last update time > 2017-01-15
            stmt.SetPredExp(
              PredExp.RecLastUpdate(),
              PredExp.IntegerValue(new DateTime(2017, 1, 15)),
              PredExp.IntegerGreater()
            ); 
            

This is an experimental method and subject to change.

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.9.6.0 (3.9.6)
Syntax

Parameters

predExp
Type:  Aerospike.Client PredExp 
See Also