Class Predicate.RegexPredicate

java.lang.Object
com.loomcache.server.query.Predicate.RegexPredicate
All Implemented Interfaces:
Predicate
Enclosing interface:
Predicate

public static final class Predicate.RegexPredicate extends Object implements Predicate
Predicate that tests Java regex matching against a field's string value.
  • Constructor Details

    • RegexPredicate

      public RegexPredicate(String fieldName, String regexPattern)
  • Method Details

    • fieldName

      public String fieldName()
    • pattern

      public String pattern()
    • matches

      public boolean matches(SqlRow row)
      Description copied from interface: Predicate
      Tests whether the given row matches this predicate.
      Specified by:
      matches in interface Predicate
      Parameters:
      row - the row to test
      Returns:
      true if the row matches, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object