Modifier and Type | Field and Description |
---|---|
protected long |
connectionFailures |
protected long |
dnsFailures |
protected long |
failures |
protected long |
fetched |
protected long |
gone |
protected String |
homepageUrl |
protected Date |
lastCheck |
protected MapWritable |
metaData |
protected long |
notModified |
protected long |
redirPerm |
protected long |
redirTemp |
protected float |
score |
protected long |
unfetched |
Constructor and Description |
---|
HostDatum() |
HostDatum(float score) |
HostDatum(float score,
Date lastCheck) |
HostDatum(float score,
Date lastCheck,
String homepageUrl) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Long |
getConnectionFailures() |
Long |
getDnsFailures() |
long |
getFetched() |
long |
getGone() |
String |
getHomepageUrl() |
Date |
getLastCheck() |
MapWritable |
getMetaData()
returns a MapWritable if it was set or read in @see readFields(DataInput),
returns empty map in case CrawlDatum was freshly created (lazily instantiated).
|
long |
getNotModified() |
long |
getRedirPerm() |
long |
getRedirTemp() |
float |
getScore() |
long |
getUnfetched() |
boolean |
hasHomepageUrl() |
void |
incConnectionFailures() |
void |
incDnsFailures() |
boolean |
isEmpty() |
Long |
numFailures() |
Long |
numRecords() |
void |
putAllMetaData(HostDatum other)
Add all metadata from other CrawlDatum to this CrawlDatum.
|
void |
readFields(DataInput in) |
void |
resetFailures() |
void |
resetStatistics() |
void |
setConnectionFailures(Long connectionFailures) |
void |
setDnsFailures(Long dnsFailures) |
void |
setFetched(long val) |
void |
setGone(long val) |
void |
setHomepageUrl(String homepageUrl) |
void |
setLastCheck() |
void |
setLastCheck(Date date) |
void |
setMetaData(MapWritable mapWritable) |
void |
setNotModified(long val) |
void |
setRedirPerm(long val) |
void |
setRedirTemp(long val) |
void |
setScore(float score) |
void |
setUnfetched(long val) |
String |
toString() |
void |
write(DataOutput out) |
protected long failures
protected float score
protected Date lastCheck
protected String homepageUrl
protected MapWritable metaData
protected long dnsFailures
protected long connectionFailures
protected long unfetched
protected long fetched
protected long notModified
protected long redirTemp
protected long redirPerm
protected long gone
public HostDatum()
public HostDatum(float score)
public HostDatum(float score, Date lastCheck)
public void resetFailures()
public void setDnsFailures(Long dnsFailures)
public void setConnectionFailures(Long connectionFailures)
public void incDnsFailures()
public void incConnectionFailures()
public Long numFailures()
public Long getDnsFailures()
public Long getConnectionFailures()
public void setScore(float score)
public void setLastCheck()
public void setLastCheck(Date date)
public boolean isEmpty()
public float getScore()
public Long numRecords()
public Date getLastCheck()
public boolean hasHomepageUrl()
public String getHomepageUrl()
public void setHomepageUrl(String homepageUrl)
public void setUnfetched(long val)
public long getUnfetched()
public void setFetched(long val)
public long getFetched()
public void setNotModified(long val)
public long getNotModified()
public void setRedirTemp(long val)
public long getRedirTemp()
public void setRedirPerm(long val)
public long getRedirPerm()
public void setGone(long val)
public long getGone()
public void resetStatistics()
public void setMetaData(MapWritable mapWritable)
public void putAllMetaData(HostDatum other)
other
- HostDatumpublic MapWritable getMetaData()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
Copyright © 2021 The Apache Software Foundation