added IOException to size() and row()

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2256 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent 7646849241
commit ef84fc4956

@ -416,7 +416,7 @@ final class dbTable implements kelondroIndex {
}
}
public int size() {
public int size() throws IOException {
int size = -1;
try {
String sqlQuery = new String
@ -436,7 +436,7 @@ final class dbTable implements kelondroIndex {
return size;
} catch (Exception e) {
return -1;
throw new IOException(e.getMessage());
}
}

@ -54,10 +54,8 @@ import java.io.IOException;
public interface kelondroIndex {
public int size();
public kelondroRow row();
public int size() throws IOException;
public kelondroRow row() throws IOException;
public kelondroRow.Entry get(byte[] key) throws IOException;
public kelondroRow.Entry put(kelondroRow.Entry row) throws IOException;
public kelondroRow.Entry remove(byte[] key) throws IOException;

Loading…
Cancel
Save