org.apache.nutch.util
Class GenericWritableConfigurable

java.lang.Object
  extended by org.apache.hadoop.io.GenericWritable
      extended by org.apache.nutch.util.GenericWritableConfigurable
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable
Direct Known Subclasses:
NutchWritable

public abstract class GenericWritableConfigurable
extends org.apache.hadoop.io.GenericWritable
implements org.apache.hadoop.conf.Configurable

A generic Writable wrapper that can inject Configuration to Configurables


Constructor Summary
GenericWritableConfigurable()
           
 
Method Summary
 org.apache.hadoop.conf.Configuration getConf()
           
 void readFields(DataInput in)
           
 void setConf(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class org.apache.hadoop.io.GenericWritable
get, getTypes, set, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericWritableConfigurable

public GenericWritableConfigurable()
Method Detail

getConf

public org.apache.hadoop.conf.Configuration getConf()
Specified by:
getConf in interface org.apache.hadoop.conf.Configurable
Overrides:
getConf in class org.apache.hadoop.io.GenericWritable

setConf

public void setConf(org.apache.hadoop.conf.Configuration conf)
Specified by:
setConf in interface org.apache.hadoop.conf.Configurable
Overrides:
setConf in class org.apache.hadoop.io.GenericWritable

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Overrides:
readFields in class org.apache.hadoop.io.GenericWritable
Throws:
IOException


Copyright © 2013 The Apache Software Foundation