org.apache.nutch.crawl
Class Inlinks
java.lang.Object
org.apache.nutch.crawl.Inlinks
- All Implemented Interfaces:
- Writable
public class Inlinks
- extends Object
- implements Writable
A list of Inlink
s.
Inlinks
public Inlinks()
add
public void add(Inlink inlink)
add
public void add(Inlinks inlinks)
iterator
public Iterator<Inlink> iterator()
size
public int size()
clear
public void clear()
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface Writable
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface Writable
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
getAnchors
public String[] getAnchors()
- Return the set of anchor texts. Only a single anchor with a given text
is permitted from a given domain.
Copyright © 2011 The Apache Software Foundation