org.terracotta.toolkit.search.expression
Class Matches
java.lang.Object
org.terracotta.toolkit.search.expression.BaseClause
org.terracotta.toolkit.search.expression.Matches
- All Implemented Interfaces:
- Clause
public class Matches
- extends BaseClause
Fields inherited from class org.terracotta.toolkit.search.expression.BaseClause |
SEP |
Constructor Summary |
Matches(String attributeName,
String regex)
Construct a "like" criteria for the given expression. |
Methods inherited from class org.terracotta.toolkit.search.expression.BaseClause |
and, not, or |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Matches
public Matches(String attributeName,
String regex)
- Construct a "like" criteria for the given expression. Expressions are always case insensitive
The following special characters are supported:
- '?' - match any one single character
- '*' - match any multiple character(s) (including zero)
The supported wildcard characters can be escaped with a backslash '\', and a literal backslash can be included with
'\\'
WARN: Expressions starting with a leading wildcard character are potentially very expensive (ie. full scan) for
indexed caches
- Parameters:
attributeName
- attribute nameregex
- expression
getRegex
public String getRegex()
getAttributeName
public String getAttributeName()
Copyright © 2014 Terracotta, Inc.. All Rights Reserved.