|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.MapReduceBase
net.sf.eos.hadoop.mapred.EosDocumentSupportMapReduceBase
public abstract class EosDocumentSupportMapReduceBase
Support for handling Map/Reduce jobs with EosDocument.
| Constructor Summary | |
|---|---|
EosDocumentSupportMapReduceBase()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
configure(JobConf conf)
|
protected Text |
eosDocumentToText(EosDocument doc)
Transforms a EosDocument to an Hadoop Text. |
protected Serializer |
getSerializer()
Returns a Serializer instance. |
protected EosDocument |
textToEosDocument(Text eosDoc)
Transforms a Hadoop Text to an EosDocument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EosDocumentSupportMapReduceBase()
| Method Detail |
|---|
protected Serializer getSerializer()
throws EosException
Serializer instance. Uses the instance defined in
Serializer.SERIALIZER_IMPL_CONFIG_NAME. If no configuration
is defined, the default implementation is used.
Serializer instance
EosException - if an error occurs
protected Text eosDocumentToText(EosDocument doc)
throws IOException,
Exception
EosDocument to an Hadoop Text.
doc - the EosDocument to transform
Exception - if an error occurs
IOException - if an I/O error occurs
protected EosDocument textToEosDocument(Text eosDoc)
throws Exception,
IOException
Text to an EosDocument.
eosDoc - the document as Hadoop Text.
Exception - if an error occurs
IOException - if an I/O error occurspublic void configure(JobConf conf)
configure in interface JobConfigurableconfigure in class MapReduceBase
public void close()
throws IOException
close in interface Closeableclose in class MapReduceBaseIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||