Package org.apache.nutch.parse
Class Outlink
java.lang.Object
org.apache.nutch.parse.Outlink
- All Implemented Interfaces:
Writable
An outgoing link from a page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetToUrl()inthashCode()static OutlinkvoidreadFields(DataInput in) voidvoidstatic voidSkips over one Outlink in the input.toString()voidwrite(DataOutput out)
-
Constructor Details
-
Outlink
public Outlink() -
Outlink
- Throws:
MalformedURLException
-
-
Method Details
-
readFields
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
skip
Skips over one Outlink in the input.- Parameters:
in- theDataInputtuple stream holding the toUrl and archor pair.- Throws:
IOException- if there is an error processing theDataInput
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
read
- Throws:
IOException
-
getToUrl
-
setUrl
-
getAnchor
-
getMetadata
-
setMetadata
-
equals
-
toString
-
hashCode
public int hashCode()
-