|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType> com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter<Object,Object,Object,String> com.ibm.websphere.objectgrid.continuousquery.filter.MatchFilter
public class MatchFilter
This class checks if an attribute matches a regular expression pattern.
Field Summary |
---|
Fields inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter |
---|
attributePath, objectToCompare |
Fields inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter |
---|
version |
Fields inherited from interface com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter |
---|
POJO_ADDRESSABLEKEYNAME, POJO_PATHSEPARATOR |
Constructor Summary | |
---|---|
MatchFilter()
Constructor for serialization only. |
|
MatchFilter(String attributePath,
String pattern)
Construct a new regular expression based filter |
Method Summary | |
---|---|
String |
createString()
Creates a string representation of the continuous query filter, this method is used by AbstractCQFilter.toString(). |
boolean |
filter(FilterContent content)
Checks if the supplied object passes the filter. |
Methods inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter |
---|
createString |
Methods inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter |
---|
equals, getAttribute, hashCode, isKeyFilter, toString, validateAttributePath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchFilter()
public MatchFilter(String attributePath, String pattern)
attributePath
- pattern
- CompareFilter.CompareFilter(String, Object)
,
Pattern
Method Detail |
---|
public boolean filter(FilterContent content) throws ContinuousQueryException
ContinuousQueryFilter
content
- A representation of the cache entry to be checked
ContinuousQueryException
ContinuousQueryFilter.filter(FilterContent)
public String createString()
AbstractCQFilter
The string will be used for identifying and comparing filters, i.e. it will be used in AbstractCQFilter.hashCode() and AbstractCQFilter.equals(Object), so the returned value must be in unique format among all filters in the system.
createString
in class AbstractCQFilter<Object,Object,Object,String>