|
||||||||||
| 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.ClosedFilter<S>
public class ClosedFilter<S extends Storable>
Filter which blocks any results from passing through.
| 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. |
|
ClosedFilter<S> |
and(Filter<S> filter)
Returns a combined filter instance that accepts records which are only accepted by this filter and the one given. |
|
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. |
|
ClosedFilter<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. |
|
List<Filter<S>> |
disjunctiveNormalFormSplit()
Splits the filter from its disjunctive normal form. |
|
boolean |
equals(Object obj)
|
|
FilterValues<S> |
initialFilterValues()
Returns a FilterValues instance for assigning values to a Filter. |
|
boolean |
isBound()
Returns true if all property filters are known to be properly bound. |
|
boolean |
isClosed()
Always returns true. |
|
OpenFilter<S> |
not()
Returns the logical negation of this filter. |
|
Filter<S> |
or(Filter<S> filter)
Returns a combined filter instance that accepts records which are accepted either by this filter or the one given. |
|
String |
toString()
Returns the string value of this filter, which is also parsable. |
|
ClosedFilter<S> |
unbind()
Undoes the effect of a bind operation. |
|
| Methods inherited from class com.amazon.carbonado.filter.Filter |
|---|
and, and, and, andExists, andNotExists, appendTo, asJoinedFrom, asJoinedFrom, conjunctiveNormalForm, disjunctiveNormalForm, filterFor, getClosedFilter, getOpenFilter, getStorableType, hashCode, isOpen, notJoinedFrom, notJoinedFrom, or, or, or, orExists, orNotExists, reduce |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final boolean isClosed()
isClosed in class Filter<S extends Storable>public ClosedFilter<S> and(Filter<S> filter)
Filter
and in class Filter<S extends Storable>public Filter<S> or(Filter<S> filter)
Filter
or in class Filter<S extends Storable>public OpenFilter<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 FilterValues<S> initialFilterValues()
FilterNote: The returned FilterValues instance may reference a different
filter instance than this one. Call getFilter to retrieve it. The
difference is caused by the filter property values being bound.
initialFilterValues 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 ClosedFilter<S> bind()
Filter
bind in class Filter<S extends Storable>public ClosedFilter<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> ClosedFilter<T> asJoinedFromAny(ChainedProperty<T> joinProperty)
Filter
asJoinedFromAny in class Filter<S extends Storable>public boolean equals(Object obj)
equals in class Filter<S extends Storable>public String toString()
Filter
toString 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 | |||||||||