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

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

public abstract class BinaryOpFilter<S extends Storable>
extends Filter<S>

Base class for filter tree nodes that have a left and right child.

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
 Filter<S> bind()
          Walks through each property filter, assigning a bind ID to it.
 Filter<S> getLeftFilter()
           
 Filter<S> getRightFilter()
           
 boolean isBound()
          Returns true if all property filters are known to be properly bound.
 
Methods inherited from class com.amazon.carbonado.filter.Filter
accept, and, and, and, and, andExists, andNotExists, appendTo, appendTo, asJoinedFrom, asJoinedFrom, asJoinedFromAny, conjunctiveNormalForm, conjunctiveNormalFormSplit, disjunctiveNormalForm, disjunctiveNormalFormSplit, equals, filterFor, getClosedFilter, getOpenFilter, getStorableType, hashCode, initialFilterValues, isClosed, isOpen, not, notJoinedFrom, notJoinedFrom, or, or, or, or, orExists, orNotExists, reduce, toString, unbind
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getLeftFilter

public Filter<S> getLeftFilter()

getRightFilter

public Filter<S> getRightFilter()

bind

public Filter<S> bind()
Description copied from class: Filter
Walks through each property filter, assigning a bind ID to it. This step is automatically performed for proper dnf/cnf conversion, and for building FilterValues.

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

isBound

public boolean isBound()
Description copied from class: Filter
Returns true if all property filters are known to be properly bound. This is a side effect of calling Filter.bind(), Filter.initialFilterValues(), Filter.disjunctiveNormalForm() or Filter.conjunctiveNormalForm().

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


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