Class BaseColumnFilter

    • Field Detail

      • schema

        protected Schema schema
      • column

        protected final String column
      • columnIdx

        protected int columnIdx
    • Constructor Detail

      • BaseColumnFilter

        protected BaseColumnFilter​(String column)
    • Method Detail

      • removeExample

        public boolean removeExample​(List<Writable> writables)
        Specified by:
        removeExample in interface Filter
        Parameters:
        writables - Example
        Returns:
        true if example should be removed, false to keep
      • removeSequence

        public boolean removeSequence​(List<List<Writable>> sequence)
        Specified by:
        removeSequence in interface Filter
        Parameters:
        sequence - sequence example
        Returns:
        true if example should be removed, false to keep
      • removeExample

        public abstract boolean removeExample​(Writable writable)
        Should the example or sequence be removed, based on the values from the specified column?