|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.task.ConsumerTask
uk.ac.starlink.ttools.task.MapperTask
public abstract class MapperTask
Task which maps one or more input tables to an output table.
This class provides methods to acquire the table sources and sink;
any actual transformation work is done by a separate
TableMapper
object.
Constructor Summary | |
---|---|
MapperTask(String purpose,
ProcessingMode outMode,
boolean useOutFilter,
TableMapper mapper)
Constructor. |
Method Summary | |
---|---|
protected TableProducer |
createProducer(uk.ac.starlink.task.Environment env)
Returns an object which can produce the effective output table which will be consumed by this task. |
protected abstract InputTableSpec[] |
getInputSpecs(uk.ac.starlink.task.Environment env)
Returns an array of InputTableSpec objects describing the input tables used by this task. |
TableMapper |
getMapper()
Returns this task's Mapper object. |
Methods inherited from class uk.ac.starlink.ttools.task.ConsumerTask |
---|
createExecutable, createProducer, getOutputMode, getParameterList, getParameters, getPurpose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapperTask(String purpose, ProcessingMode outMode, boolean useOutFilter, TableMapper mapper)
purpose
- one-line description of the taskoutMode
- processing mode which determines the destination of
the processed tableuseOutFilter
- allow specification of filters for output tablemapper
- object which defines mapping transformationMethod Detail |
---|
protected abstract InputTableSpec[] getInputSpecs(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
env
- execution environment
uk.ac.starlink.task.TaskException
protected TableProducer createProducer(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
ConsumerTask
createProducer
in class ConsumerTask
env
- execution environment
uk.ac.starlink.task.TaskException
public TableMapper getMapper()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |