use of co.cask.cdap.api.dataset.lib.KeyValue in project cdap by caskdata.
the class AuthorizationTest method assertDatasetIsEmpty.
private void assertDatasetIsEmpty(NamespaceId namespaceId, String datasetName) throws Exception {
DataSetManager<KeyValueTable> outTableManager = getDataset(namespaceId.dataset(datasetName));
KeyValueTable outputTable = outTableManager.get();
try (CloseableIterator<KeyValue<byte[], byte[]>> scanner = outputTable.scan(null, null)) {
Assert.assertFalse(scanner.hasNext());
}
}
Aggregations