mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
added log message for index generation in HeapReader
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5787 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
43bcd192cd
commit
14361f1ca4
|
@ -134,7 +134,8 @@ public class HeapReader {
|
|||
|
||||
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];
|
||||
|
@ -189,6 +190,8 @@ public class HeapReader {
|
|||
} catch (ExecutionException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Log.logInfo("HeapReader", "finished index generation for " + heapFile.toString() + ", " + index.size() + " entries, " + free.size() + " gaps.");
|
||||
|
||||
}
|
||||
|
||||
public String name() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user