com.amazon.carbonado.filter
Class OrFilter<S extends Storable>

java.lang.Object
  extended by com.amazon.carbonado.filter.Filter<S>
      extended by com.amazon.carbonado.filter.BinaryOpFilter<S>
          extended by com.amazon.carbonado.filter.OrFilter<S>
All Implemented Interfaces:
Appender, Serializable

public class OrFilter<S extends Storable>
extends BinaryOpFilter<S>

Filter tree node that performs a logical 'or' test.

Author:
Brian S O'Neill
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.amazon.carbonado.filter.Filter
Filter.NotJoined
 
Method Summary
<R,P> R
accept(Visitor<S,R,P> visitor, P param)
          Accept the given visitor subclass to traverse the filter tree.
 void appendTo(Appendable app, FilterValues<S> values)
          Appends the string value of this filter into the given Appendable.
<T extends Storable>
Filter<T>
asJoinedFromAny(ChainedProperty<T> joinProperty)
          Allows join from any property type, including one-to-many joins.
 boolean equals(Object obj)
           
 Filter<S> not()
          Returns the logical negation of this filter.
 Filter<S> unbind()
          Undoes the effect of a bind operation.
 
Methods inherited from class com.amazon.carbonado.filter.BinaryOpFilter
bind, getLeftFilter, getRightFilter, isBound
 
Methods inherited from class com.amazon.carbonado.filter.Filter
and, and, and, and, andExists, andNotExists, appendTo, asJoinedFrom, asJoinedFrom, conjunctiveNormalForm, conjunctiveNormalFormSplit, disjunctiveNormalForm, disjunctiveNormalFormSplit, filterFor, getClosedFilter, getOpenFilter, getStorableType, hashCode, initialFilterValues, isClosed, isOpen, notJoinedFrom, notJoinedFrom, or, or, or, or, orExists, orNotExists, reduce, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

not

public Filter<S> not()
Description copied from class: Filter
Returns the logical negation of this filter.

Specified by:
not in class Filter<S extends Storable>
Returns:
canonical Filter instance

accept

public <R,P> R accept(Visitor<S,R,P> visitor,
                      P param)
Description copied from class: Filter
Accept the given visitor subclass to traverse the filter tree.

Specified by:
accept in class Filter<S extends Storable>
Parameters:
visitor - visitor to traverse through the tree
param - generic input parameter passed to visit methods
Returns:
generic return value passed from visit methods

unbind

public Filter<S> unbind()
Description copied from class: Filter
Undoes the effect of a bind operation. The returned filter might still report itself as bound if it doesn't make a distinction between these states.

Specified by:
unbind in class Filter<S extends Storable>
Returns:
canonical Filter instance with unbound property filters

asJoinedFromAny

public <T extends Storable> Filter<T> asJoinedFromAny(ChainedProperty<T> joinProperty)
Description copied from class: Filter
Allows join from any property type, including one-to-many joins.

Specified by:
asJoinedFromAny in class Filter<S extends Storable>

equals

public boolean equals(Object obj)
Specified by:
equals in class Filter<S extends Storable>

appendTo

public void appendTo(Appendable app,
                     FilterValues<S> values)
              throws IOException
Description copied from class: Filter
Appends the string value of this filter into the given Appendable.

Specified by:
appendTo in class Filter<S extends Storable>
values - optionally supply filter values
Throws:
IOException


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.