Search in sources :

Example 11 with BatchPolicy

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]);
}
Also used : BatchPolicy(com.aerospike.client.policy.BatchPolicy) Record(com.aerospike.client.Record) Key(com.aerospike.client.Key) Test(org.junit.Test)

Aggregations

BatchPolicy (com.aerospike.client.policy.BatchPolicy)11 Key (com.aerospike.client.Key)1 Record (com.aerospike.client.Record)1 Test (org.junit.Test)1