Class NonMissing

  • All Implemented Interfaces:
    Destroyable, ErrorProvider, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class NonMissing
    extends AbstractRowStatistic
    Counts the non-missing cells.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
        min-user-mode: Expert
     
    -columns <adams.data.spreadsheet.SpreadSheetColumnRange> (property: columns)
        The columns to include.
        default: first-last
        example: A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(...)' inverts the range '...'; column names (case-sensitive) as well as the following placeholders can be used: first, second, third, last_2, last_1, last; numeric indices can be enforced by preceding them with '#' (eg '#12'); column names can be surrounded by double quotes.
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Count

        protected int m_Count
        the count.
    • Constructor Detail

      • NonMissing

        public NonMissing()
    • Method Detail

      • preVisit

        protected void preVisit​(SpreadSheet sheet,
                                int rowIndex)
        Performs initialization before the cells are being visited.
        Specified by:
        preVisit in class AbstractRowStatistic
        Parameters:
        sheet - the spreadsheet to generate the stats for
        rowIndex - the row index
      • doVisit

        protected void doVisit​(Row row,
                               int colIndex)
        Gets called with every cell in the row for generating the stats.
        Specified by:
        doVisit in class AbstractRowStatistic
        Parameters:
        row - the current row
        colIndex - the column index
      • postVisit

        protected SpreadSheet postVisit​(SpreadSheet sheet,
                                        int rowIndex)
        Finishes up the stats generation after all the cells have been visited.
        Specified by:
        postVisit in class AbstractRowStatistic
        Parameters:
        sheet - the spreadsheet to generate the stats for
        rowIndex - the row index
        Returns:
        the generated stats