|
||||||||||
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 occursprotected 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 occursprotected 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 JobConfigurable
configure
in class MapReduceBase
public void close() throws IOException
close
in interface Closeable
close
in class MapReduceBase
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |