@ -161,16 +157,9 @@ public class kelondroCollectionIndex {
serverLog.logFine("STARTUP","STARTED INITIALIZATION OF NEW COLLECTION INDEX WITH "+initialSpace+" ENTRIES. THIS WILL TAKE SOME TIME. "+(serverMemory.available()/1024/1024)+"MB AVAILABLE.");
// the buffersize applies to a possible load of the ram-index
// the minimumSpace is a initial allocation space for the index; names the number of index slots
@ -72,43 +76,21 @@ public class kelondroFlexTable extends kelondroFlexWidthArray implements kelondr
System.out.println("*** Last Startup time: "+stt+" milliseconds");
finallongstart=System.currentTimeMillis();
if(serverMemory.request(neededRAM,false)){
// we can use a RAM index
if(indexfile.exists()){
// delete existing index file
System.out.println("*** Delete File index "+indexfile);
indexfile.delete();
}
// fill the index
System.out.print("*** Loading RAM index for "+size()+" entries from "+newpath+"; available RAM = "+(serverMemory.available()>>20)+" MB, allocating "+(neededRAM>>20)+" MB for index.");
index=initializeRamIndex(minimumSpace);
// we use a RAM index
if(indexfile.exists()){
// delete existing index file
System.out.println("*** Delete File index "+indexfile);
indexfile.delete();
}
System.out.println(" -done-");
System.out.println(index.size()+" index entries initialized and sorted from "+super.col[0].size()+" keys.");
RAMIndex=true;
tableTracker.put(this.filename(),this);
}else{
// too less ram for a ram index
kelondroIndexki;
if(indexfile.exists()){
// use existing index file
System.out.println("*** Using File index "+indexfile);
System.out.println("*** Generating File index for "+size()+" entries from "+indexfile);
System.out.println("*** Cause: too less RAM ("+serverMemory.available()+" Bytes) configured. Assign at least "+(neededRAM/1024/1024)+" MB more RAM to enable a RAM index.");
System.out.print("*** Loading RAM index for "+size()+" entries from "+newpath+"; available RAM = "+(serverMemory.available()>>20)+" MB, allocating "+(neededRAM>>20)+" MB for index.");
index=initializeRamIndex(minimumSpace);
System.out.println(" -done-");
System.out.println(ki.size()+" entries indexed from "+super.col[0].size()+" keys.");