org.apache.nutch.pagedb
Class FetchListEntry

java.lang.Object
  extended byorg.apache.nutch.pagedb.FetchListEntry
All Implemented Interfaces:
Cloneable, Writable

public final class FetchListEntry
extends Object
implements Writable, Cloneable


Field Summary
static String DIR_NAME
           
 
Constructor Summary
FetchListEntry()
           
FetchListEntry(boolean fetch, Page page, String[] anchors)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 String[] getAnchors()
           
 boolean getFetch()
           
 Page getPage()
           
 UTF8 getUrl()
           
static void main(String[] argv)
           
static FetchListEntry read(DataInput in)
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void setAnchors(String[] anchors)
           
 String toString()
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIR_NAME

public static final String DIR_NAME
See Also:
Constant Field Values
Constructor Detail

FetchListEntry

public FetchListEntry()

FetchListEntry

public FetchListEntry(boolean fetch,
                      Page page,
                      String[] anchors)
Method Detail

readFields

public final void readFields(DataInput in)
                      throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException

read

public static FetchListEntry read(DataInput in)
                           throws IOException
Throws:
IOException

write

public final void write(DataOutput out)
                 throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

getFetch

public boolean getFetch()

getPage

public Page getPage()

getAnchors

public String[] getAnchors()

setAnchors

public void setAnchors(String[] anchors)

getUrl

public UTF8 getUrl()

equals

public boolean equals(Object o)

clone

public Object clone()

toString

public String toString()

main

public static void main(String[] argv)
                 throws Exception
Throws:
Exception


Copyright © 2006 The Apache Software Foundation