Package org.apache.nutch.crawl
Class Inlink
- java.lang.Object
- 
- org.apache.nutch.crawl.Inlink
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAnchor()StringgetFromUrl()MapWritablegetMetadata()inthashCode()static Inlinkread(DataInput in)voidreadFields(DataInput in)voidsetMetadata(MapWritable md)static voidskip(DataInput in)Skips over one Inlink in the input.StringtoString()voidwrite(DataOutput out)
 
- 
- 
- 
Method Detail- 
readFieldspublic void readFields(DataInput in) throws IOException - Specified by:
- readFieldsin interface- Writable
- Throws:
- IOException
 
 - 
skippublic static void skip(DataInput in) throws IOException 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
 
 - 
writepublic void write(DataOutput out) throws IOException - Specified by:
- writein interface- Writable
- Throws:
- IOException
 
 - 
readpublic static Inlink read(DataInput in) throws IOException - Throws:
- IOException
 
 - 
getFromUrlpublic String getFromUrl() 
 - 
getAnchorpublic String getAnchor() 
 - 
getMetadatapublic MapWritable getMetadata() 
 - 
setMetadatapublic void setMetadata(MapWritable md) 
 
- 
 
-