[TOC]

org.apache.nutch.parse

Class Outlink

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

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

Constructor Summary

Constructors Constructor and Description Outlink() Outlink(String toUrl, String anchor)

Method Summary

Methods Modifier and Type Method and Description boolean equals(Object o) String getAnchor() org.apache.hadoop.io.MapWritable getMetadata() String getToUrl() static Outlink read(DataInput in) void readFields(DataInput in) void setMetadata(org.apache.hadoop.io.MapWritable md) void setUrl(String toUrl) static void skip(DataInput in) Skips over one Outlink in the input. String toString() void write(DataOutput out)

-    

Methods inherited from class java.lang.Object

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

Constructor Detail

-  

Outlink

public Outlink()
-  

Outlink

public Outlink(String toUrl,
       String anchor)
        throws MalformedURLException
  - Throws: 
  - <code>MalformedURLException</code>       

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 Outlink 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 Outlink read(DataInput in)
                    throws IOException
  - Throws: 
  - <code>IOException</code>       
-  

getToUrl

public String getToUrl()
-  

setUrl

public void setUrl(String toUrl)
-  

getAnchor

public String getAnchor()
-  

getMetadata

public org.apache.hadoop.io.MapWritable getMetadata()
-  

setMetadata

public void setMetadata(org.apache.hadoop.io.MapWritable md)
-  

equals

public boolean equals(Object o)
  - Overrides: 
  - <code>equals</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