Class CountMode

  • All Implemented Interfaces:
    ProcessingMode

    public class CountMode
    extends java.lang.Object
    implements ProcessingMode
    Processing mode which just counts the number of rows and columns and writes a summary to the output stream.
    Since:
    15 Aug 2005
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      CountMode()
      Constructs an instance with default parallelism.
      CountMode​(boolean isParallel)
      Constructs an instance with specified paralellism.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TableConsumer createConsumer​(uk.ac.starlink.task.Environment env)
      Creates a TableConsumer, deriving any additional required configuration from a given environment.
      uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
      Returns a list of any parameters which are associated with this mode.
      java.lang.String getDescription()
      Returns a textual description of this processing mode.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountMode

        public CountMode()
        Constructs an instance with default parallelism.
      • CountMode

        public CountMode​(boolean isParallel)
        Constructs an instance with specified paralellism.
        Parameters:
        isParallel - true to count in parallel where possible
    • Method Detail

      • getAssociatedParameters

        public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
        Description copied from interface: ProcessingMode
        Returns a list of any parameters which are associated with this mode.
        Specified by:
        getAssociatedParameters in interface ProcessingMode
        Returns:
        parameter list
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: ProcessingMode
        Returns a textual description of this processing mode. This will be included in the user document so should be in XML.
        Specified by:
        getDescription in interface ProcessingMode
        Returns:
        textual description of this mode
      • createConsumer

        public TableConsumer createConsumer​(uk.ac.starlink.task.Environment env)
        Description copied from interface: ProcessingMode
        Creates a TableConsumer, deriving any additional required configuration from a given environment.
        Specified by:
        createConsumer in interface ProcessingMode
        Parameters:
        env - execution environment