Class AbstractBatchFilter

    • Constructor Detail

      • AbstractBatchFilter

        public AbstractBatchFilter()
    • Method Detail

      • preInitFilter

        protected void preInitFilter​(Dataset data)
                              throws Exception
        Before the actual filter initialization. Initializes the columns.
        Parameters:
        data - the data to initialize with
        Throws:
        Exception - if initialization fails
      • doInitFilter

        protected abstract void doInitFilter​(Dataset data)
                                      throws Exception
        Filter-specific initialization.
        Parameters:
        data - the data to initialize with
        Throws:
        Exception - if initialization fails
      • initOutputFormat

        protected abstract Dataset initOutputFormat​(Dataset data)
                                             throws Exception
        Initializes the output format.
        Parameters:
        data - the output format
        Throws:
        Exception - if initialization fails
      • doFilter

        protected abstract Dataset doFilter​(Dataset data)
                                     throws Exception
        Filters the dataset coming through.
        Parameters:
        data - the data to filter
        Returns:
        the filtered data
        Throws:
        Exception - if filtering fails
      • filter

        public Dataset filter​(Dataset data)
                       throws Exception
        Filters the dataset coming through.
        Specified by:
        filter in interface BatchFilter
        Parameters:
        data - the data to filter
        Returns:
        the filtered data
        Throws:
        Exception - if filtering fails