|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.filter.Filter<S>
com.amazon.carbonado.filter.PropertyFilter<S>
public class PropertyFilter<S extends Storable>
Filter tree node that performs a relational test against a specific property value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.amazon.carbonado.filter.Filter |
|---|
Filter.NotJoined |
| Method Summary | ||
|---|---|---|
|
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. |
|
|
asJoinedFromAny(ChainedProperty<T> joinProperty)
Allows join from any property type, including one-to-many joins. |
|
PropertyFilter<S> |
bind()
Walks through each property filter, assigning a bind ID to it. |
|
List<Filter<S>> |
conjunctiveNormalFormSplit()
Splits the filter from its conjunctive normal form. |
|
Object |
constant()
Returns the constant value of this PropertyFilter, which is valid only if isConstant returns true. |
|
PropertyFilter<S> |
constant(Object value)
Returns another PropertyFilter instance which is bound to the given constant value. |
|
List<Filter<S>> |
disjunctiveNormalFormSplit()
Splits the filter from its disjunctive normal form. |
|
boolean |
equals(Object obj)
|
|
int |
getBindID()
Bind ID is used to distinguish this PropertyFilter instance from another against the same property. |
|
Class<?> |
getBoxedType()
Returns the type of the ChainedProperty property, boxed into an object if primitive. |
|
ChainedProperty<S> |
getChainedProperty()
|
|
RelOp |
getOperator()
|
|
Class<?> |
getType()
Returns the type of the ChainedProperty. |
|
boolean |
isBound()
Returns true if all property filters are known to be properly bound. |
|
boolean |
isConstant()
Returns true if this PropertyFilter has a constant value. |
|
PropertyFilter<S> |
not()
Returns the logical negation of this filter. |
|
PropertyFilter<S> |
unbind()
Undoes the effect of a bind operation. |
|
| Methods inherited from class com.amazon.carbonado.filter.Filter |
|---|
and, and, and, and, andExists, andNotExists, appendTo, asJoinedFrom, asJoinedFrom, conjunctiveNormalForm, disjunctiveNormalForm, 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 |
|---|
public PropertyFilter<S> not()
Filter
not in class Filter<S extends Storable>public List<Filter<S>> disjunctiveNormalFormSplit()
Filter
disjunctiveNormalFormSplit in class Filter<S extends Storable>public List<Filter<S>> conjunctiveNormalFormSplit()
Filter
conjunctiveNormalFormSplit in class Filter<S extends Storable>
public <R,P> R accept(Visitor<S,R,P> visitor,
P param)
Filter
accept in class Filter<S extends Storable>visitor - visitor to traverse through the treeparam - generic input parameter passed to visit methods
public ChainedProperty<S> getChainedProperty()
public Class<?> getType()
public Class<?> getBoxedType()
public RelOp getOperator()
public int getBindID()
public PropertyFilter<S> bind()
Filter
bind in class Filter<S extends Storable>public PropertyFilter<S> unbind()
Filter
unbind in class Filter<S extends Storable>public boolean isBound()
FilterFilter.bind(), Filter.initialFilterValues(), Filter.disjunctiveNormalForm() or Filter.conjunctiveNormalForm().
isBound in class Filter<S extends Storable>public <T extends Storable> PropertyFilter<T> asJoinedFromAny(ChainedProperty<T> joinProperty)
Filter
asJoinedFromAny in class Filter<S extends Storable>public PropertyFilter<S> constant(Object value)
IllegalArgumentException - if value is not compatible with property typepublic Object constant()
public boolean isConstant()
public boolean equals(Object obj)
equals in class Filter<S extends Storable>
public void appendTo(Appendable app,
FilterValues<S> values)
throws IOException
Filter
appendTo in class Filter<S extends Storable>values - optionally supply filter values
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||