aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

Add support for findBySinceUpdate using since_update in metadata #284

Closed qihaiyan closed 1 year ago

BrianNichols commented 1 year ago

This functionality already exists:

Statement stmt = new Statement();
stmt.setNamespace(ns);
stmt.setSetName(set);

// Find records updated within the last hour.
QueryPolicy policy = new QueryPolicy();
policy.filterExp = Exp.build(Exp.lt(Exp.sinceUpdate(), Exp.val(60 * 60 * 1000)));

RecordSet rs = client.query(policy, stmt);
qihaiyan commented 1 year ago

thanks.