use of com.aerospike.client.exp.Exp in project aerospike-client-java by aerospike.
the class TestBitExp method resize.
private void resize(Key key) {
Exp size = Exp.val(6);
policy.filterExp = Exp.build(Exp.ne(BitExp.resize(BitPolicy.Default, size, 0, Exp.blobBin(binA)), BitExp.resize(BitPolicy.Default, size, 0, Exp.blobBin(binA))));
Record r = client.get(policy, key);
assertEquals(null, r);
policy.filterExp = Exp.build(Exp.eq(BitExp.resize(BitPolicy.Default, size, 0, Exp.blobBin(binA)), BitExp.resize(BitPolicy.Default, size, 0, Exp.blobBin(binA))));
r = client.get(policy, key);
assertRecordFound(key, r);
}
use of com.aerospike.client.exp.Exp in project aerospike-client-java by aerospike.
the class TestHLLExp method describe.
private void describe(Key key) {
Exp index = Exp.val(0);
policy.filterExp = Exp.build(Exp.ne(ListExp.getByIndex(ListReturnType.VALUE, Exp.Type.INT, index, HLLExp.describe(Exp.hllBin(bin1))), ListExp.getByIndex(ListReturnType.VALUE, Exp.Type.INT, index, HLLExp.describe(Exp.hllBin(bin2)))));
Record r = client.get(policy, key);
assertEquals(null, r);
policy.filterExp = Exp.build(Exp.eq(ListExp.getByIndex(ListReturnType.VALUE, Exp.Type.INT, index, HLLExp.describe(Exp.hllBin(bin1))), ListExp.getByIndex(ListReturnType.VALUE, Exp.Type.INT, index, HLLExp.describe(Exp.hllBin(bin2)))));
r = client.get(policy, key);
assertRecordFound(key, r);
}