|
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>
KeyType
- Type of the key object for the map being queriedValueType
- Type of the value object for the map being queriedAttributeType
- Type of the attribute referenced by the attribute pathMatchType
- Type of the object being compared topublic abstract class AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType>
This is an abstract class which all continuous query filters must extend. It defines how cached entries should be compared and filtered. All subclasses must provide a no-argument constructor for serialization purposes.
Field Summary | |
---|---|
protected int |
version
Version of the filter implementation, which can be used internally for backward compatibility. |
Fields inherited from interface com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter |
---|
POJO_ADDRESSABLEKEYNAME, POJO_PATHSEPARATOR |
Constructor Summary | |
---|---|
AbstractCQFilter()
|
Method Summary | |
---|---|
abstract String |
createString()
Creates a string representation of the continuous query filter, this method is used by toString(). |
boolean |
equals(Object obj)
|
protected Object |
getAttribute(FilterContent content,
String attributePath)
Retrieves an attribute from the content that is to be filtered based on the specified attribute path. |
int |
hashCode()
|
boolean |
isKeyFilter()
|
String |
toString()
|
protected void |
validateAttributePath(String attributePath)
Ensure that attribute path used to retrieve an attribute from a cache entry is valid. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter |
---|
filter |
Field Detail |
---|
protected int version
Constructor Detail |
---|
public AbstractCQFilter()
Method Detail |
---|
public boolean isKeyFilter()
public abstract String createString()
The string will be used for identifying and comparing filters, i.e. it will be used in hashCode() and equals(Object), so the returned value must be in unique format among all filters in the system.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
protected void validateAttributePath(String attributePath) throws ContinuousQueryAttributePathException
attributePath
- the path to the attribute
ContinuousQueryAttributePathException
protected Object getAttribute(FilterContent content, String attributePath) throws ContinuousQueryException
content
- The cache entry (key and value) to be processed by this filterattributePath
- the path specifying the attribute of this cache entry to be examined.
For a description of attribute paths, @see CompareFilter#CompareFilter(String, Object)
ContinuousQueryException
|
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 |