[TOC]

org.apache.nutch.crawl

Class Inlink

    • All Implemented Interfaces:
    • org.apache.hadoop.io.Writable

public class Inlink
extends Object
implements org.apache.hadoop.io.Writable

Constructor Summary

Constructors Constructor and Description Inlink() Inlink(String fromUrl, String anchor)

Method Summary

Methods Modifier and Type Method and 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)

-    

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructor Detail

-  

Inlink

public Inlink()
-  

Inlink

public Inlink(String fromUrl,
      String anchor)

Method Detail

-  

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>       
-  

skip

public static void skip(DataInput in)
                 throws IOException

Skips over one Inlink in the input.

  - 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>       
-  

read

public static Inlink read(DataInput in)
                   throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

getFromUrl

public String getFromUrl()
-  

getAnchor

public String getAnchor()
-  

equals

public boolean equals(Object o)
  - Overrides: 
  - <code>equals</code> in class <code>Object</code>        
-  

hashCode

public int hashCode()
  - Overrides: 
  - <code>hashCode</code> in class <code>Object</code>        
-  

toString

public String toString()
  - Overrides: 
  - <code>toString</code> in class <code>Object</code>       

Copyright © 2014 The Apache Software Foundation