scs.demos.mapreduce.servant
Class IOFormatServant
java.lang.Object
org.omg.PortableServer.Servant
scs.demos.mapreduce.IOFormatPOA
scs.demos.mapreduce.servant.IOFormatServant
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, IOFormatOperations
- Direct Known Subclasses:
- TokenIOFormat
public abstract class IOFormatServant
- extends IOFormatPOA
Servant generico que implementa uma interface IOFormat. Serve de classe abstrata para
outros IOFormat
Field Summary |
protected java.lang.String |
exception
|
protected org.omg.PortableServer.POA |
poa
|
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 |
poa
protected org.omg.PortableServer.POA poa
exception
protected java.lang.String exception
IOFormatServant
public IOFormatServant()
throws java.lang.Exception
- Throws:
java.lang.Exception
doGetRecordReader
protected abstract RecordReader doGetRecordReader(TaskStatus status)
throws java.lang.Exception
- Metodo abstrato para retornar um RecordReader
- Returns:
- RecordReader
- Throws:
java.lang.Exception
doGetRecordWriter
protected abstract RecordWriter doGetRecordWriter(TaskStatus status)
throws java.lang.Exception
- Metodo abstrato para retornar um RecordWriter
- Returns:
- RecordWriter
- Throws:
java.lang.Exception
getSplits
public FileSplit[] getSplits(java.lang.String confFileName,
Reporter reporter)
throws SplitException
- Metodo que particiona o arquivo de entrada em vários segmentos menores,
de acordo com o especificado no arquivo de configuracao
- Returns:
- FileSptlit[]
- Throws:
SplitException
getRecordReader
public RecordReader getRecordReader(TaskStatus status)
throws IOFormatException
- Throws:
IOFormatException
getRecordWriter
public RecordWriter getRecordWriter(TaskStatus status)
throws IOFormatException
- Throws:
IOFormatException