Class MapperTask

    • Constructor Detail

      • MapperTask

        public MapperTask​(java.lang.String purpose,
                          ProcessingMode outMode,
                          boolean useOutFilter,
                          TableMapper mapper,
                          TablesInput tablesInput)
        Constructor.
        Parameters:
        purpose - one-line description of the task
        outMode - processing mode which determines the destination of the processed table
        useOutFilter - allow specification of filters for output table
        mapper - object which defines mapping transformation
        tablesInput - object which can acquire multiple input tables from the environment
    • Method Detail

      • createProducer

        public TableProducer createProducer​(uk.ac.starlink.task.Environment env)
                                     throws uk.ac.starlink.task.TaskException
        Description copied from class: ConsumerTask
        Returns an object which can produce the effective output table which will be consumed by this task. The table produced by the resulting producer can be fed to the ConsumerTask.getIdentity(uk.ac.starlink.table.StarTable) method.
        Specified by:
        createProducer in class ConsumerTask
        Parameters:
        env - execution environment
        Returns:
        table producer
        Throws:
        uk.ac.starlink.task.TaskException
      • getMapper

        public TableMapper getMapper()
        Returns this task's Mapper object.
        Returns:
        mapper
      • getTablesInput

        public TablesInput getTablesInput()
        Returns the object used for acquiring input tables from the environment.
        Returns:
        tables input