uk.ac.starlink.ttools.task
Class HomogeneousMapperTask

java.lang.Object
  extended by uk.ac.starlink.ttools.task.ConsumerTask
      extended by uk.ac.starlink.ttools.task.MapperTask
          extended by uk.ac.starlink.ttools.task.HomogeneousMapperTask
All Implemented Interfaces:
uk.ac.starlink.task.Task
Direct Known Subclasses:
TableCat

public class HomogeneousMapperTask
extends MapperTask

MapperTask which has a variable number of input tables, treating them all the same as each other. A single, possibly repeated, parameter is used to specify any number of input tables, and a single (not repeated) filter parameter is used to specify a processing pipeline which operates identically on all the inputs.

Since:
14 Sep 2006
Author:
Mark Taylor

Field Summary
 FilterParameter inFilterParam_
           
 InputTablesParameter inTablesParam_
           
 
Constructor Summary
HomogeneousMapperTask(String purpose, ProcessingMode outMode, boolean useOutFilter, TableMapper mapper, boolean useInFilter)
          Constructor.
 
Method Summary
 InputTableSpec[] getInputSpecs(uk.ac.starlink.task.Environment env)
          Returns an array of InputTableSpec objects describing the input tables used by this task.
 
Methods inherited from class uk.ac.starlink.ttools.task.MapperTask
createProducer, getMapper
 
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
 

Field Detail

inTablesParam_

public InputTablesParameter inTablesParam_

inFilterParam_

public FilterParameter inFilterParam_
Constructor Detail

HomogeneousMapperTask

public HomogeneousMapperTask(String purpose,
                             ProcessingMode outMode,
                             boolean useOutFilter,
                             TableMapper mapper,
                             boolean useInFilter)
Constructor.

Parameters:
purpose - one-line description of the purpose of the task
outMode - output mode
useOutFilter - whether a postprocessing filter is permitted
mapper - table mapper
useInFilter - whether preprocessing filters are permitted
Method Detail

getInputSpecs

public InputTableSpec[] getInputSpecs(uk.ac.starlink.task.Environment env)
                               throws uk.ac.starlink.task.TaskException
Description copied from class: MapperTask
Returns an array of InputTableSpec objects describing the input tables used by this task.

Specified by:
getInputSpecs in class MapperTask
Parameters:
env - execution environment
Returns:
input table specifiers
Throws:
uk.ac.starlink.task.TaskException


Copyright © 2009 Central Laboratory of the Research Councils. All Rights Reserved.