Skip to content

Commit

Permalink
added log message for index generation in HeapReader
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5787 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Apr 9, 2009
1 parent 43bcd19 commit 14361f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/de/anomic/kelondro/blob/HeapReader.java
Expand Up @@ -134,7 +134,8 @@ private boolean initIndexReadDump() {

private void initIndexReadFromHeap() throws IOException {
// this initializes the this.index object by reading positions from the heap file

Log.logInfo("HeapReader", "generating index for " + heapFile.toString() + ", " + (file.length() / 1024) + " kbytes. Please wait.");

this.free = new Gap();
LongHandleIndex.initDataConsumer indexready = LongHandleIndex.asynchronusInitializer(keylength, this.ordering, 0, Math.max(10, (int) (Runtime.getRuntime().freeMemory() / (10 * 1024 * 1024))), 100000);
byte[] key = new byte[keylength];
Expand Down Expand Up @@ -189,6 +190,8 @@ private void initIndexReadFromHeap() throws IOException {
} catch (ExecutionException e) {
e.printStackTrace();
}
Log.logInfo("HeapReader", "finished index generation for " + heapFile.toString() + ", " + index.size() + " entries, " + free.size() + " gaps.");

}

public String name() {
Expand Down

0 comments on commit 14361f1

Please sign in to comment.