IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.continuousquery.filter
Class OrFilter

java.lang.Object
  extended by com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<Object,Object,Object,Object>
      extended by com.ibm.websphere.objectgrid.continuousquery.filter.BinaryLogicalFilter
          extended by com.ibm.websphere.objectgrid.continuousquery.filter.OrFilter
All Implemented Interfaces:
ContinuousQueryFilter<Object,Object,Object,Object>, Serializable

public class OrFilter
extends BinaryLogicalFilter

This filter passes if any child filter is true.

Since:
8.6
See Also:
Serialized Form

Field Summary
 
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
OrFilter()
           
OrFilter(ContinuousQueryFilter... list)
           
 
Method Summary
 String createString()
          Creates a string representation of the continuous query filter, this method is used by AbstractCQFilter.toString().
 boolean filter(FilterContent content)
          Will return true if any child filter returns true.
 
Methods inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.BinaryLogicalFilter
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

OrFilter

public OrFilter()

OrFilter

public OrFilter(ContinuousQueryFilter... list)
See Also:
BinaryLogicalFilter.BinaryLogicalFilter(ContinuousQueryFilter...)
Method Detail

filter

public boolean filter(FilterContent content)
               throws ContinuousQueryException
Will return true if any child filter returns true. Short circuiting applies so not all child filters are guaranteed to be invoked.

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,Object,Object>
Returns:
"( OR ...)", where refers to the string representation of AbstractCQFilter.
See Also:
AbstractCQFilter.createString()

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.