Author: j16sdiz
Date: 2008-12-11 08:40:14 +0000 (Thu, 11 Dec 2008)
New Revision: 24199
Modified:
trunk/plugins/XMLSpider/XMLSpider.java
Log:
unnecessary field
Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java 2008-12-11 08:00:28 UTC (rev
24198)
+++ trunk/plugins/XMLSpider/XMLSpider.java 2008-12-11 08:40:14 UTC (rev
24199)
@@ -142,8 +142,6 @@
public TreeMap<String, String> tMap = new TreeMap<String, String>();
protected AtomicLong maxPageId;
- private final HashSet<Long> idsWithWords = new HashSet<Long>();
-
private final HashMap<String, Long[]> idsByWord = new HashMap<String,
Long[]>();
private Vector<String> indices;
@@ -446,7 +444,7 @@
private synchronized void produceIndex2() throws
IOException,NoSuchAlgorithmException {
// Produce the main index file.
- if (idsByWord.isEmpty() || idsWithWords.isEmpty()) {
+ if (idsByWord.isEmpty()) {
System.out.println("No URIs with words");
return;
}
@@ -569,7 +567,7 @@
private synchronized void generateIndex2() throws Exception{
Logger.normal(this, "Generating index...");
//using the tMap generate the xml indices
- if (idsByWord.isEmpty() || idsWithWords.isEmpty()) {
+ if (idsByWord.isEmpty()) {
System.out.println("No URIs with words");
return;
}
@@ -1286,7 +1284,6 @@
return;
Long[] ids = idsByWord.get(word);
- idsWithWords.add(id);
/* Word position indexation */
HashMap<String, Long[]> wordPositionsForOneUri =
positionsByWordById.get(id); /*
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs