ski1.close();
}
public void test5() throws Exception {
InMemoryMap imm = new InMemoryMap(false, "/tmp");
mutate(imm, "r1", "foo:cq1", 3, "bar1");
mutate(imm, "r1", "foo:cq1", 3, "bar2");
mutate(imm, "r1", "foo:cq1", 3, "bar3");
MemoryIterator ski1 = imm.skvIterator();
ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
ae(ski1, "r1", "foo:cq1", 3, "bar3");
imm.delete(0);
ae(ski1, "r1", "foo:cq1", 3, "bar2");
ae(ski1, "r1", "foo:cq1", 3, "bar1");
assertFalse(ski1.hasTop());
ski1.close();
imm = new InMemoryMap(false, "/tmp");
mutate(imm, "r1", "foo:cq1", 3, "bar1");
mutate(imm, "r1", "foo:cq2", 3, "bar2");
mutate(imm, "r1", "foo:cq3", 3, "bar3");
ski1 = imm.skvIterator();
ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
ae(ski1, "r1", "foo:cq1", 3, "bar1");
imm.delete(0);
ae(ski1, "r1", "foo:cq2", 3, "bar2");
ae(ski1, "r1", "foo:cq3", 3, "bar3");
assertFalse(ski1.hasTop());