use of com.aerospike.client.policy.BatchPolicy in project aerospike-client-java by aerospike.
the class TestFilterExp method batch.
@Test
public void batch() {
BatchPolicy policy = new BatchPolicy();
policy.filterExp = Exp.build(Exp.eq(Exp.intBin(binA), Exp.val(1)));
Key[] keys = { keyA, keyB };
Record[] records = client.get(policy, keys);
assertBinEqual(keyA, records[0], binA, 1);
assertEquals(null, records[1]);
}
Aggregations