speed enhancements when parsing RWI rows (makes search slightly faster)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8096 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent da55a359e9
commit 0cf9ebc3b0

@ -299,11 +299,11 @@ public class yacysearch {
}
if (querystring.indexOf("/http") >= 0) {
querystring = querystring.replace("/http", "");
urlmask = "http://.*";
urlmask = "https?://.*";
}
if (querystring.indexOf("/https") >= 0) {
querystring = querystring.replace("/https", "");
urlmask = "https://.*";
urlmask = "https?://.*";
}
if (querystring.indexOf("/ftp") >= 0) {
querystring = querystring.replace("/ftp", "");

@ -81,7 +81,6 @@ public final class WordReferenceRow extends AbstractReference implements WordRef
public static final Row.Entry poisonRowEntry = urlEntryRow.newEntry();
public static final WordReferenceRow poison = new WordReferenceRow(poisonRowEntry);
// static properties
private static final int col_urlhash = 0; // h 12 the url hash b64-encoded
private static final int col_lastModified = 1; // a 2 last-modified time of the document where word appears
@ -316,7 +315,7 @@ public final class WordReferenceRow extends AbstractReference implements WordRef
}
public int hitcount() {
return (int) this.entry.getColLong(col_hitcount);
return (0xff & this.entry.getColByte(col_hitcount));
}
public Collection<Integer> positions() {
@ -329,11 +328,11 @@ public final class WordReferenceRow extends AbstractReference implements WordRef
}
public int posinphrase() {
return (int) this.entry.getColLong(col_posinphrase);
return (0xff & this.entry.getColByte(col_posinphrase));
}
public int posofphrase() {
return (int) this.entry.getColLong(col_posofphrase);
return (0xff & this.entry.getColByte(col_posofphrase));
}
public int wordsintext() {
@ -353,23 +352,23 @@ public final class WordReferenceRow extends AbstractReference implements WordRef
}
public int wordsintitle() {
return (int) this.entry.getColLong(col_wordsInTitle);
return (0xff & this.entry.getColByte(col_wordsInTitle));
}
public int llocal() {
return (int) this.entry.getColLong(col_llocal);
return (0xff & this.entry.getColByte(col_llocal));
}
public int lother() {
return (int) this.entry.getColLong(col_lother);
return (0xff & this.entry.getColByte(col_lother));
}
public int urllength() {
return (int) this.entry.getColLong(col_urlLength);
return (0xff & this.entry.getColByte(col_urlLength));
}
public int urlcomps() {
return (int) this.entry.getColLong(col_urlComps);
return (0xff & this.entry.getColByte(col_urlComps));
}
public Bitfield flags() {

Loading…
Cancel
Save