com.ibm.websphere.objectgrid.continuousquery.filter
Class GTFilter<AttributeType,MatchType>
java.lang.Object
com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType>
com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter<Object,Object,AttributeType,MatchType>
com.ibm.websphere.objectgrid.continuousquery.filter.GTFilter<AttributeType,MatchType>
- Type Parameters:
AttributeType
- Type of the attribute referenced by the attribute pathMatchType
- Type of the object being compared to
- All Implemented Interfaces:
- ContinuousQueryFilter<Object,Object,AttributeType,MatchType>, Serializable
public class GTFilter<AttributeType,MatchType>
- extends CompareFilter<Object,Object,AttributeType,MatchType>
This checks if an attribute is greater than a scalar.
- Since:
- 8.6
- See Also:
- Serialized Form
GTFilter
public GTFilter()
- Constructor for serialization only.
GTFilter
public GTFilter(String attributePath,
MatchType object)
- See Also:
CompareFilter.CompareFilter(String, Object)
filter
public boolean filter(FilterContent content)
throws ContinuousQueryException
- Description copied from interface:
ContinuousQueryFilter
- Checks if the supplied object passes the filter.
- Parameters:
content
- A representation of the cache entry to be checked
- Returns:
- true if the object matches the filtering criteria, false otherwise
- Throws:
ContinuousQueryException
- See Also:
ContinuousQueryFilter.filter(FilterContent)
createString
public String createString()
- Description copied from class:
AbstractCQFilter
- Creates a string representation of the continuous query filter, this method is
used by AbstractCQFilter.toString().
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.
- Specified by:
createString
in class AbstractCQFilter<Object,Object,AttributeType,MatchType>
- Returns:
- " >