Package org.apache.nutch.crawl
Class Inlink
- java.lang.Object
-
- org.apache.nutch.crawl.Inlink
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAnchor()
String
getFromUrl()
int
hashCode()
static Inlink
read(DataInput in)
void
readFields(DataInput in)
static void
skip(DataInput in)
Skips over one Inlink in the input.String
toString()
void
write(DataOutput out)
-
-
-
Method Detail
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceWritable
- Throws:
IOException
-
skip
public 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
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-
read
public static Inlink read(DataInput in) throws IOException
- Throws:
IOException
-
getFromUrl
public String getFromUrl()
-
getAnchor
public String getAnchor()
-
-