[TOC]
org.apache.nutch.scoring.webgraph
Class LinkDumper.LinkNode
- java.lang.Object
- org.apache.nutch.scoring.webgraph.LinkDumper.LinkNode
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- LinkDumper
public static class LinkDumper.LinkNode extends Object implements org.apache.hadoop.io.Writable
Bean class which holds url to node information.
Constructor Summary
Constructors Constructor and Description LinkDumper.LinkNode()
LinkDumper.LinkNode(String url,
Node node)
Method Summary
Methods Modifier and Type Method and Description Node
getNode()
String
getUrl()
void
readFields(DataInput in)
void
setNode(Node node)
void
setUrl(String url)
void
write(DataOutput out)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
-
LinkDumper.LinkNode
public LinkDumper.LinkNode()
-
LinkDumper.LinkNode
public LinkDumper.LinkNode(String url, Node node)
Method Detail
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getNode
public Node getNode()
-
setNode
public void setNode(Node node)
-
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>