Class ExpressionStringComparisonRowFilter

  • All Implemented Interfaces:
    Serializable, RecordFilter, RowFilter

    public abstract class ExpressionStringComparisonRowFilter
    extends RowInRecordFilter
    Judge if a row matches by evaluating a given expression on the row, based on a particular column, and checking the result. It's a match if the result satisfies some string comparisons.
    See Also:
    Serialized Form
    • Field Detail

      • _evaluable

        protected final Evaluable _evaluable
      • _invert

        protected final Boolean _invert
      • _columnName

        protected final String _columnName
      • _cellIndex

        protected final int _cellIndex
    • Constructor Detail

      • ExpressionStringComparisonRowFilter

        public ExpressionStringComparisonRowFilter​(Evaluable evaluable,
                                                   Boolean invert,
                                                   String columnName,
                                                   int cellIndex)
    • Method Detail

      • filterRow

        public boolean filterRow​(long rowIndex,
                                 Row row,
                                 Record record)
        Description copied from class: RowInRecordFilter
        Determines if a row matches the filter.
        Specified by:
        filterRow in class RowInRecordFilter
        rowIndex - the global index of the row (from the entire grid)
        row - the row itself
        record - the enclosing record
        true if the row matches the filter
      • checkValue

        protected abstract boolean checkValue​(String s)