setupTableAndReader();
final KijiDataRequestBuilder kdrb = KijiDataRequest.builder();
kdrb.newColumnsDef().withMaxVersions(HConstants.ALL_VERSIONS)
.add("family", "column");
final KijiDataRequest kdr = kdrb.build();
final KijiRowData rowBefore =
mReader.get(mTable.getEntityId("row-1"), kdr);
assertEquals(3, rowBefore.getValues("family", "column").size());
assertEquals(315L, (long) rowBefore.getValues("family", "column").firstKey());
// Target one column:
final KijiURI target = KijiURI.newBuilder(mTableURI)
.addColumnName(KijiColumnName.create("family", "column"))
.build();
// Delete cells with timestamp == 314
assertEquals(BaseTool.SUCCESS, runTool(new DeleteTool(),
"--target=" + target,
"--entity-id=row-1",
"--timestamp=314",
"--interactive=false"
));
final KijiRowData rowAfter = mReader.get(mTable.getEntityId("row-1"), kdr);
assertEquals(2, rowAfter.getValues("family", "column").size());
assertEquals(315L, (long) rowAfter.getValues("family", "column").firstKey());
assertEquals(313L, (long) rowAfter.getValues("family", "column").lastKey());
}