SCS

scs.demos.mapreduce.user
Class TokenRecordWriter

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by scs.demos.mapreduce.RecordWriterPOA
          extended by 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


Constructor Summary
TokenRecordWriter()
           
 
Method Summary
 void close()
           
 FileSplit getFileSplit()
           
 void open(java.lang.String confFileName, FileSplit fileSplit, Reporter reporter)
           
 boolean write(org.omg.CORBA.Any key, org.omg.CORBA.Any value)
           
 
Methods inherited from class scs.demos.mapreduce.RecordWriterPOA
_all_interfaces, _invoke, _this, _this
 
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
 

Constructor Detail

TokenRecordWriter

public TokenRecordWriter()
Method Detail

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()

SCS