net.nutch.fetcher
Class FetcherOutput
java.lang.Object
net.nutch.fetcher.FetcherOutput
- All Implemented Interfaces:
- Writable
- public final class FetcherOutput
- extends Object
- implements Writable
An entry in the fetcher's output. This includes all of the fetcher output
except the raw and stripped versions of the content, which are placed in
separate files.
- Author:
- Doug Cutting
DIR_NAME
public static final String DIR_NAME
- See Also:
- Constant Field Values
DONE_NAME
public static final String DONE_NAME
- See Also:
- Constant Field Values
ERROR_NAME
public static final String ERROR_NAME
- See Also:
- Constant Field Values
RETRY
public static final byte RETRY
- See Also:
- Constant Field Values
SUCCESS
public static final byte SUCCESS
- See Also:
- Constant Field Values
NOT_FOUND
public static final byte NOT_FOUND
- See Also:
- Constant Field Values
FetcherOutput
public FetcherOutput()
FetcherOutput
public FetcherOutput(FetchListEntry fetchListEntry,
MD5Hash md5Hash,
int status)
getVersion
public byte getVersion()
readFields
public final void readFields(DataInput in)
throws IOException
- Description copied from interface:
Writable
- Reads the fields of this object from
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
- Specified by:
readFields
in interface Writable
- Throws:
IOException
write
public final void write(DataOutput out)
throws IOException
- Description copied from interface:
Writable
- Writes the fields of this object to
out
.
- Specified by:
write
in interface Writable
- Throws:
IOException
read
public static FetcherOutput read(DataInput in)
throws IOException
- Throws:
IOException
getFetchListEntry
public FetchListEntry getFetchListEntry()
getMD5Hash
public MD5Hash getMD5Hash()
getStatus
public int getStatus()
getFetchDate
public long getFetchDate()
setFetchDate
public void setFetchDate(long fetchDate)
getUrl
public UTF8 getUrl()
getAnchors
public String[] getAnchors()
equals
public boolean equals(Object o)
toString
public String toString()
main
public static void main(String[] argv)
throws Exception
- Throws:
Exception
Copyright © 2004 The Nutch Organization.