|
|
|
@ -63,7 +63,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
|
|
|
|
|
private String initiator; // the initiator hash, is NULL or "" if it is the own proxy;
|
|
|
|
|
// if this is generated by a crawl, the own peer hash in entered
|
|
|
|
|
private String referrer; // the url's referrer hash
|
|
|
|
|
private String refhash; // the url's referrer hash
|
|
|
|
|
private yacyURL url; // the url as string
|
|
|
|
|
private String name; // the name of the url, from anchor tag <a>name</a>
|
|
|
|
|
private long appdate; // the time when the url was first time appeared
|
|
|
|
@ -97,7 +97,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
public plasmaCrawlEntry(
|
|
|
|
|
String initiator,
|
|
|
|
|
yacyURL url,
|
|
|
|
|
String referrer,
|
|
|
|
|
String referrerhash,
|
|
|
|
|
String name,
|
|
|
|
|
Date appdate,
|
|
|
|
|
String profileHandle,
|
|
|
|
@ -111,7 +111,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
if ((initiator == null) || (initiator.length() == 0)) initiator = yacyURL.dummyHash;
|
|
|
|
|
this.initiator = initiator;
|
|
|
|
|
this.url = url;
|
|
|
|
|
this.referrer = (referrer == null) ? yacyURL.dummyHash : referrer;
|
|
|
|
|
this.refhash = (referrerhash == null) ? yacyURL.dummyHash : referrerhash;
|
|
|
|
|
this.name = (name == null) ? "" : name;
|
|
|
|
|
this.appdate = (appdate == null) ? 0 : appdate.getTime();
|
|
|
|
|
this.profileHandle = profileHandle; // must not be null
|
|
|
|
@ -137,7 +137,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
if (urlstring == null) throw new IOException ("url string is null");
|
|
|
|
|
this.initiator = entry.getColString(1, null);
|
|
|
|
|
this.url = new yacyURL(urlstring, entry.getColString(0, null));
|
|
|
|
|
this.referrer = (entry.empty(3)) ? yacyURL.dummyHash : entry.getColString(3, null);
|
|
|
|
|
this.refhash = (entry.empty(3)) ? yacyURL.dummyHash : entry.getColString(3, null);
|
|
|
|
|
this.name = (entry.empty(4)) ? "" : entry.getColString(4, "UTF-8").trim();
|
|
|
|
|
this.appdate = entry.getColLong(5);
|
|
|
|
|
this.profileHandle = (entry.empty(6)) ? null : entry.getColString(6, null).trim();
|
|
|
|
@ -189,7 +189,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
this.url.hash().getBytes(),
|
|
|
|
|
(initiator == null) ? "".getBytes() : this.initiator.getBytes(),
|
|
|
|
|
this.url.toString().getBytes(),
|
|
|
|
|
this.referrer.getBytes(),
|
|
|
|
|
this.refhash.getBytes(),
|
|
|
|
|
namebytes,
|
|
|
|
|
appdatestr,
|
|
|
|
|
(this.profileHandle == null) ? null : this.profileHandle.getBytes(),
|
|
|
|
@ -216,7 +216,7 @@ public class plasmaCrawlEntry {
|
|
|
|
|
|
|
|
|
|
public String referrerhash() {
|
|
|
|
|
// the urlhash of a referer url
|
|
|
|
|
return this.referrer;
|
|
|
|
|
return this.refhash;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String initiator() {
|
|
|
|
|