[TOC]
org.apache.nutch.util
Class GenericWritableConfigurable
- java.lang.Object
- org.apache.hadoop.io.GenericWritable
- 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 Configurable
s
Constructor Summary
Constructors Constructor and Description GenericWritableConfigurable()
Method Summary
Methods Modifier and Type Method and Description 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:
- <code>getConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>
- Overrides:
- <code>getConf</code> in class <code>org.apache.hadoop.io.GenericWritable</code>
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
- <code>setConf</code> in interface <code>org.apache.hadoop.conf.Configurable</code>
- Overrides:
- <code>setConf</code> in class <code>org.apache.hadoop.io.GenericWritable</code>
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
- <code>readFields</code> in interface <code>org.apache.hadoop.io.Writable</code>
- Overrides:
- <code>readFields</code> in class <code>org.apache.hadoop.io.GenericWritable</code>
- Throws:
- <code>IOException</code>