org.apache.nutch.crawl
Class Inlinks

java.lang.Object
  extended by org.apache.nutch.crawl.Inlinks
All Implemented Interfaces:
Writable

public class Inlinks
extends Object
implements Writable

A list of Inlinks.


Constructor Summary
Inlinks()
           
 
Method Summary
 void add(Inlink inlink)
           
 void add(Inlinks inlinks)
           
 void clear()
           
 String[] getAnchors()
          Return the set of anchor texts.
 Iterator<Inlink> iterator()
           
 void readFields(DataInput in)
           
 int size()
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Inlinks

public Inlinks()
Method Detail

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