Class ColumnRecordFilter

  • All Implemented Interfaces:
    RecordFilter

    public final class ColumnRecordFilter
    extends Object
    implements RecordFilter
    Record filter which applies the supplied predicate to the specified column.
    • Method Detail

      • column

        public static final UnboundRecordFilter column​(String columnPath,
                                                       ColumnPredicates.Predicate predicate)
        Factory method for record filter which applies the supplied predicate to the specified column. Note that if searching for a repeated sub-attribute it will only ever match against the first instance of it in the object.
        Parameters:
        columnPath - Dot separated path specifier, e.g. "engine.capacity"
        predicate - Should call getBinary etc. and check the value
        Returns:
        a column filter
      • isMatch

        public boolean isMatch()
        Description copied from interface: RecordFilter
        Works out whether the current record can pass through the filter.
        Specified by:
        isMatch in interface RecordFilter
        Returns:
        true if the current value for the column reader matches the predicate.