aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

Support scan with conditions #72

Closed ashwinjagadeesh-zz closed 7 years ago

ashwinjagadeesh-zz commented 7 years ago

Support scan with conditions supported from index. Would like to have conditions based on last updated time, size, created time etc.

wchu-citrusleaf commented 7 years ago

yes, the same set of predicate filters (conditions) are available both in scan and query. See PredExp.recDeviceSize() and PredExp.recLastUpdate() Aerospike does not keep create-time.

The predicate condition is not directly applied on the scan API. However, can be invoked via the Query API by creating a statement without a setFilter(), which also results in a database scan.