Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void assertTableIteratorUnsupported(Table<?, ?> table) {
table.iterator();
Assert.fail("Table iterator should have thrown " +
"UnsupportedOperationException.");
} catch (UnsupportedOperationException ex) {
} catch (IOException | UnsupportedOperationException ex) {
// Exception thrown as expected.
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ public interface SCMMetadataStore extends DBStoreHAManager {
*
* @param certType - CertType.
* @return Iterator<X509Certificate>
* @throws IOException on failure.
*/
TableIterator getAllCerts(CertificateStore.CertType certType);
TableIterator getAllCerts(CertificateStore.CertType certType)
throws IOException;

/**
* A Table that maintains all the pipeline information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,14 @@ public void deleteWithBatch(BatchOperation batch, byte[] key)
}

@Override
public TableIterator<byte[], ByteArrayKeyValue> iterator() {
public TableIterator<byte[], ByteArrayKeyValue> iterator()
throws IOException {
return new RDBStoreIterator(db.newIterator(family, false), this);
}

@Override
public TableIterator<byte[], ByteArrayKeyValue> iterator(byte[] prefix) {
public TableIterator<byte[], ByteArrayKeyValue> iterator(byte[] prefix)
throws IOException {
return new RDBStoreIterator(db.newIterator(family, false), this,
prefix);
}
Expand Down
Loading