scs.demos.mapreduce.user
Class TokenRecordWriter
java.lang.Object
org.omg.PortableServer.Servant
scs.demos.mapreduce.RecordWriterPOA
scs.demos.mapreduce.user.TokenRecordWriter
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, RecordWriterOperations
public class TokenRecordWriter
- extends RecordWriterPOA
Classe que implementa a interface RecordWriter, escrevendo tokens para um fileSplit.
Deve ser inicializado com o nome do arquivo de configuracão e o FileSplit associado
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenRecordWriter
public TokenRecordWriter()
open
public void open(java.lang.String confFileName,
FileSplit fileSplit,
Reporter reporter)
throws IOMapReduceException
- Throws:
IOMapReduceException
write
public boolean write(org.omg.CORBA.Any key,
org.omg.CORBA.Any value)
throws IOMapReduceException
- Throws:
IOMapReduceException
close
public void close()
throws IOMapReduceException
- Throws:
IOMapReduceException
getFileSplit
public FileSplit getFileSplit()