Package org.apache.nutch.crawl
Class Inlink
java.lang.Object
org.apache.nutch.crawl.Inlink
- All Implemented Interfaces:
Writable
An incoming link to a page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static InlinkvoidreadFields(DataInput in) voidstatic voidSkips over one Inlink in the input.toString()voidwrite(DataOutput out)
-
Constructor Details
-
Inlink
public Inlink() -
Inlink
-
-
Method Details
-
readFields
- Specified by:
readFieldsin interfaceWritable- Throws:
IOException
-
skip
Skips over one Inlink in the input.- Parameters:
in- the tuple containing the fromUrl and anchor data- Throws:
IOException- if there is an error reading the Inlink tuple
-
write
- Specified by:
writein interfaceWritable- Throws:
IOException
-
read
- Throws:
IOException
-
getFromUrl
-
getAnchor
-
getMetadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-