org.terracotta.toolkit.search.expression
Class Matches

java.lang.Object
  extended by org.terracotta.toolkit.search.expression.BaseClause
      extended by org.terracotta.toolkit.search.expression.Matches
All Implemented Interfaces:
Clause

public class Matches
extends BaseClause


Field Summary
 
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.
 
Method Summary
 String getAttributeName()
           
 String getRegex()
           
 
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
 

Constructor Detail

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:
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 name
regex - expression
Method Detail

getRegex

public String getRegex()

getAttributeName

public String getAttributeName()


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.