[TOC]
org.apache.nutch.crawl
Class Inlinks
- java.lang.Object
- org.apache.nutch.crawl.Inlinks
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class Inlinks extends Object implements org.apache.hadoop.io.Writable
A list of Inlink
s.
Constructor Summary
Constructors Constructor and Description Inlinks()
Method Summary
Methods Modifier and Type Method and Description void
add(Inlink inlink)
void
add(Inlinks inlinks)
void
clear()
String[]
getAnchors()
Return the set of anchor texts.
Iterator
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:
- <code>readFields</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
write
public void write(DataOutput out) throws IOException
- Specified by:
- <code>write</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Throws:
- <code>IOException</code>
-
toString
public String toString()
- Overrides:
- <code>toString</code> in class <code>Object</code>
-
getAnchors
public String[] getAnchors()
Return the set of anchor texts. Only a single anchor with a given text is permitted from a given domain.