removed warnings

pull/1/head
orbiter 12 years ago
parent 59bf4677b6
commit 276dd6452b

@ -42,7 +42,6 @@ import net.yacy.cora.protocol.Domains;
import net.yacy.cora.protocol.RequestHeader;
import net.yacy.kelondro.util.Formatter;
import net.yacy.peers.Network;
import net.yacy.peers.PeerActions;
import net.yacy.peers.Seed;
import net.yacy.peers.operation.yacySeedUploader;
import net.yacy.search.Switchboard;

@ -23,7 +23,6 @@ package net.yacy.cora.federate.solr.connector;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.concurrent.atomic.AtomicLong;

@ -637,7 +637,7 @@ dc_rights
} else {
/* sections might be initialized via Arrays.toList (which does not implement the addAll method)
so new list must be assigned */
LinkedList<String> tmplist = new LinkedList();
LinkedList<String> tmplist = new LinkedList<String>();
tmplist.addAll(this.sections);
tmplist.addAll(doc.sections);
this.sections = tmplist;

@ -64,21 +64,6 @@ public abstract class TablesColumnIndex {
public INDEXTYPE getType() {
return this.type;
}
/**
* create an index for a given table and column
* @param columnName - name of the column you want to build an index for
* @param valueIsArray - indicates whether the column value consist of an array (e.g. comma separated tags)
* @param separator - a string value used to split column values into an array
* @param table - an iterator over table rows which should be added to the index
*/
private synchronized void buildIndex(final String columnName, final String separator, final Iterator<Tables.Row> table) {
this.deleteIndex(columnName);
// loop through all rows of the table
while (table.hasNext()) {
this.add(columnName, separator, table.next());
}
}
/**
* create an index for a given table and given columns

@ -25,7 +25,6 @@ import java.util.Collection;
import net.yacy.cora.date.MicroDate;
import net.yacy.cora.document.ASCII;
import net.yacy.cora.document.UTF8;
import net.yacy.cora.order.Base64Order;
import net.yacy.kelondro.data.word.Word;
import net.yacy.kelondro.index.Column;

@ -27,10 +27,7 @@
package net.yacy.kelondro.data.word;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Locale;
import java.util.Set;
import net.yacy.cora.order.Base64Order;
import net.yacy.cora.order.Digest;
@ -38,7 +35,6 @@ import net.yacy.cora.storage.ARC;
import net.yacy.cora.storage.ConcurrentARC;
import net.yacy.cora.storage.HandleSet;
import net.yacy.cora.util.SpaceExceededException;
import net.yacy.document.LargeNumberCache;
import net.yacy.kelondro.index.RowHandleSet;
import net.yacy.kelondro.logging.Log;
import net.yacy.kelondro.util.Bitfield;
@ -80,7 +76,6 @@ public class Word {
public int posInText; // unique handle, is initialized with word position (excluding double occurring words)
public int posInPhrase; // position of word in phrase
public int numOfPhrase; // number of phrase. 'normal' phrases begin with number 100
private Set<Integer> phrases; // a set of handles to all phrases where this word appears
public Bitfield flags; // the flag bits for each word
public Word(final int handle, final int pip, final int nop) {
@ -88,7 +83,6 @@ public class Word {
this.posInText = handle;
this.posInPhrase = pip;
this.numOfPhrase = nop;
this.phrases = new HashSet<Integer>();
this.flags = null;
}

@ -30,10 +30,8 @@ package net.yacy.kelondro.rwi;
import java.io.IOException;
import java.util.Iterator;
import java.util.TreeMap;
import java.util.TreeSet;
import net.yacy.cora.order.Base64Order;
import net.yacy.cora.order.Order;
import net.yacy.cora.storage.HandleSet;
import net.yacy.cora.util.SpaceExceededException;
import net.yacy.kelondro.index.Row;

@ -30,7 +30,6 @@ package net.yacy.kelondro.rwi;
import java.io.IOException;
import java.util.TreeMap;
import java.util.TreeSet;
import net.yacy.cora.order.ByteOrder;
import net.yacy.cora.order.CloneableIterator;

@ -41,9 +41,7 @@ import java.util.TreeMap;
import net.yacy.cora.document.ASCII;
import net.yacy.cora.document.UTF8;
import net.yacy.cora.order.ByteOrder;
import net.yacy.cora.order.CloneableIterator;
import net.yacy.cora.order.NaturalOrder;
import net.yacy.kelondro.index.Index;
import net.yacy.kelondro.index.Row;
import net.yacy.kelondro.index.Row.Entry;
@ -74,7 +72,6 @@ public class SQLTable implements Index, Iterable<Row.Entry> {
private static final String db_pwd_str = "yacy";
private Connection theDBConnection = null;
private static final ByteOrder order = new NaturalOrder(true);
private final Row rowdef;
public SQLTable(final String dbType, final Row rowdef) throws Exception {

@ -37,7 +37,6 @@ public final class InstantBusyThread extends AbstractBusyThread implements BusyT
private final Object environment;
private final Long handle;
private static int instantThreadCounter = 0;
private static final TreeMap<Long, String> jobs = new TreeMap<Long, String>();
public InstantBusyThread(
@ -101,7 +100,6 @@ public final class InstantBusyThread extends AbstractBusyThread implements BusyT
@Override
public boolean job() throws Exception {
instantThreadCounter++;
//System.out.println("started job " + this.handle + ": " + this.getName());
synchronized(jobs) {jobs.put(this.handle, getName());}
boolean jobHasDoneSomething = false;
@ -131,7 +129,6 @@ public final class InstantBusyThread extends AbstractBusyThread implements BusyT
Log.logSevere("BUSYTHREAD", "Generic Exception, thread '" + getName() + "': " + e.getMessage());
Log.logException(e);
}
instantThreadCounter--;
synchronized(jobs) {jobs.remove(this.handle);}
return jobHasDoneSomething;
}

@ -1021,7 +1021,6 @@ public final class Protocol
final SearchEvent event,
final int offset,
final int count,
final long time,
final Seed target,
final Blacklist blacklist) {

@ -168,7 +168,7 @@ public class RemoteSearch extends Thread {
for (Seed s: targetPeers) omit.add(s);
Seed[] nodes = DHTSelection.selectNodeSearchTargets(event.peers, 20, omit);
for (Seed s: nodes) {
solrRemoteSearch(event, count, time, s, blacklist);
solrRemoteSearch(event, count, s, blacklist);
}
// start search to YaCy peers
@ -257,7 +257,6 @@ public class RemoteSearch extends Thread {
public static Thread solrRemoteSearch(
final SearchEvent event,
final int count,
final long time,
final Seed targetPeer,
final Blacklist blacklist) {
@ -276,7 +275,6 @@ public class RemoteSearch extends Thread {
event,
0,
count,
time,
targetPeer,
blacklist);
if (urls >= 0) {

@ -150,7 +150,7 @@ public final class SearchEvent {
this.rankingProcess = new RWIProcess(this.query, this.order, remote);
// start a local solr search
RemoteSearch.solrRemoteSearch(this, 1000, 1000, null /*this peer*/, Switchboard.urlBlacklist);
RemoteSearch.solrRemoteSearch(this, 1000, null /*this peer*/, Switchboard.urlBlacklist);
// start a local RWI search concurrently
this.rankingProcess.start();

Loading…
Cancel
Save