Since PredExps have been deprecated since aerospike client version 6.x.x onwards for Java, what is the corresponding Filter Expression replacement for the notEquals functionality that PredExps provided?
For example:
predicate = Arrays.asList(PredExp.stringBin(key), PredExp.stringValue(String.valueOf(value)),PredExp.stringEqual(),PredExp.not());
What is the Filter Expression equivalent of this?
I tried using a combination of Filter Expression for this but even that is not working.
Aerospike Filter Expression for "not equal" is
ne, checkout: https://docs.aerospike.com/server/guide/expressions/comparison#neAlso a good place to look is the Aerospike Java Client project on GitHub: https://github.com/aerospike/aerospike-client-java It contains some tests and code examples that uses
ne.For example, the code below find records where bin
ageis not an integer.For your case it would be something like: