org.apache.nutch.fetcher
Class FetcherOutput

java.lang.Object
  extended by org.apache.nutch.fetcher.FetcherOutput
All Implemented Interfaces:
Configurable, Writable

public final class FetcherOutput
extends Object
implements Writable, Configurable


Constructor Summary
FetcherOutput()
           
FetcherOutput(CrawlDatum crawlDatum, Content content, ParseImpl parse)
           
 
Method Summary
 boolean equals(Object o)
           
 Configuration getConf()
          Return the configuration used by this object.
 Content getContent()
           
 CrawlDatum getCrawlDatum()
           
 ParseImpl getParse()
           
 int hashCode()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void setConf(Configuration conf)
          Set the configuration to be used by this object.
 String toString()
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FetcherOutput

public FetcherOutput()

FetcherOutput

public FetcherOutput(CrawlDatum crawlDatum,
                     Content content,
                     ParseImpl parse)
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

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

getCrawlDatum

public CrawlDatum getCrawlDatum()

getContent

public Content getContent()

getParse

public ParseImpl getParse()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

setConf

public void setConf(Configuration conf)
Description copied from interface: Configurable
Set the configuration to be used by this object.

Specified by:
setConf in interface Configurable

getConf

public Configuration getConf()
Description copied from interface: Configurable
Return the configuration used by this object.

Specified by:
getConf in interface Configurable


Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.