Class AbstractFilter

    • Field Detail

      • m_Initialized

        protected boolean m_Initialized
        whether the filter has been initialized.
      • m_OutputFormat

        protected Dataset m_OutputFormat
        the output format.
    • Constructor Detail

      • AbstractFilter

        public AbstractFilter()
    • Method Detail

      • isInitialized

        public boolean isInitialized()
        Returns whether the filter has been initialized.
        Specified by:
        isInitialized in interface Filter
        Returns:
        true if initialized
      • getOutputFormat

        public Dataset getOutputFormat()
        Returns the output format.
        Specified by:
        getOutputFormat in interface Filter
        Returns:
        the format, null if not yet defined
      • appendHeader

        protected void appendHeader​(SpreadSheet input,
                                    Row header,
                                    gnu.trove.list.TIntList cols)
        Appends the column names to the header.
        Parameters:
        input - the input data
        header - the header so far
        cols - the columns to append
      • appendData

        protected void appendData​(Row input,
                                  Row data,
                                  gnu.trove.list.TIntList cols)
        Appends the column values to the row.
        Parameters:
        input - the input data
        data - the row so far
        cols - the columns to append