ScanPolicy Methods

Aerospike

The ScanPolicy type exposes the following members.

Methods

  NameDescription
Public methodSetPredExp
Set predicate expression filter in postfix notation. If the predicate expression exists and evaluates to false, the transaction is ignored.

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

Example:

            // Record last update time > 2017-01-15
            policy.SetPredExp(
              PredExp.RecLastUpdate(),
              PredExp.IntegerValue(new DateTime(2017, 1, 15)),
              PredExp.IntegerGreater(),
            ); 
            

(Inherited from Policy.)
Public methodSetTimeout
Create a single timeout by setting socketTimeout and totalTimeout to the same value.
(Inherited from Policy.)
Public methodSetTimeouts
Set socketTimeout and totalTimeout. If totalTimeout defined and socketTimeout greater than totalTimeout, set socketTimeout to totalTimeout.
(Inherited from Policy.)
Public methodValidate
Verify policies fields are within range.
Top
See Also

Reference