Class Distinct

    • Field Detail

      • m_Numbers

        protected gnu.trove.set.hash.TDoubleHashSet m_Numbers
        for counting the distinct the numeric values.
      • m_Labels

        protected HashSet<String> m_Labels
        for counting the distinct the labels.
    • Constructor Detail

      • Distinct

        public Distinct()
    • Method Detail

      • preVisit

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

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

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