Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) dbImport: convert cacheSize to kb when creating plasma* objects
hermens351bd0a67890
diff --git a/source/de/anomic/plasma/dbImport/plasmaCrawlNURLImporter.java b/source/de/anomic/plasma/dbImport/plasmaCrawlNURLImporter.javaindex c16477fb1..5508717ad 100644--- a/source/de/anomic/plasma/dbImport/plasmaCrawlNURLImporter.java+++ b/source/de/anomic/plasma/dbImport/plasmaCrawlNURLImporter.java@@ -89,13 +89,13 @@ public class plasmaCrawlNURLImporter extends AbstractImporter implements// init noticeUrlDBthis.log.logInfo("Initializing the source noticeUrlDB");- this.importNurlDB = new plasmaCrawlNURL(this.importPath, this.cacheSize*(3/4));+ this.importNurlDB = new plasmaCrawlNURL(this.importPath, ((this.cacheSize*3)/4)/1024);this.importStartSize = this.importNurlDB.size();//int stackSize = this.importNurlDB.stackSize();// init profile DBthis.log.logInfo("Initializing the source profileDB");- this.importProfileDB = new plasmaCrawlProfile(profileDbFile,this.cacheSize*(1/3));+ this.importProfileDB = new plasmaCrawlProfile(profileDbFile, ((this.cacheSize*1)/4)/1024);}public void run() {diff --git a/source/de/anomic/plasma/dbImport/plasmaDbImporter.java b/source/de/anomic/plasma/dbImport/plasmaDbImporter.javaindex a51db1baf..dbd3916f1 100644--- a/source/de/anomic/plasma/dbImport/plasmaDbImporter.java+++ b/source/de/anomic/plasma/dbImport/plasmaDbImporter.java@@ -75,9 +75,9 @@ public class plasmaDbImporter extends AbstractImporter implements dbImporter {}this.log.logFine("Initializing source word index db.");- this.importWordIndex = new plasmaWordIndex(this.importPath, this.cacheSize/2, this.log);+ this.importWordIndex = new plasmaWordIndex(this.importPath, (this.cacheSize/2)/1024, this.log);this.log.logFine("Initializing import URL db.");- this.importUrlDB = new plasmaCrawlLURL(new File(this.importPath, "urlHash.db"), this.cacheSize/2);+ this.importUrlDB = new plasmaCrawlLURL(new File(this.importPath, "urlHash.db"), (this.cacheSize/2)/1024);this.importStartSize = this.importWordIndex.size();}diff --git a/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java b/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.javaindex c84915bbf..33b8a6be2 100644--- a/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java+++ b/source/de/anomic/plasma/dbImport/plasmaWordIndexAssortmentImporter.java@@ -60,7 +60,7 @@ public class plasmaWordIndexAssortmentImporter extends AbstractImporter implemen// initializing the import assortment dbthis.log.logInfo("Initializing source assortment file");- this.assortmentFile = new plasmaWordIndexAssortment(importAssortmentPath,assortmentNr,8*1024*1024, this.log);+ this.assortmentFile = new plasmaWordIndexAssortment(importAssortmentPath,assortmentNr, this.cacheSize/1024, this.log);this.importStartSize = this.assortmentFile.size();}