|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.exhibit.Expr
org.hd.d.pg2k.webSvr.exhibit.FilterExpr
public final class FilterExpr
Wraps a filter to make an expression (for a FilterBean). Filters must be Serializable so that filter expressions can be persisted. They must not attempt to cache any reference, direct or indirect, to the DataSourceBean.
Filter objects must be immutable and the accept() method must be idempotent and not depend on any state held within the object.
TODO: do object validation on deserialisation
| Field Summary | |
|---|---|
private FilterIF |
filter
The filter we apply here; never null. |
private static int |
MIN_SIZE_FOR_CONCURRENCY
Minimum number of values worth attempting to filter in parallel; strictly positive. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
| Constructor Summary | |
|---|---|
FilterExpr(Expr _upstream,
FilterIF _filter)
Construct us with the upstream expression. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Equality depends on underlying expression and this filter. |
Name.ExhibitFull[] |
eval(AllExhibitProperties aep,
Name.ExhibitFull[] in)
Evaluate this expression applying our filter. |
int |
hashCode()
Hash depends on underlying expression and this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final FilterIF filter
private static final int MIN_SIZE_FOR_CONCURRENCY
private static final long serialVersionUID
| Constructor Detail |
|---|
public FilterExpr(Expr _upstream,
FilterIF _filter)
| Method Detail |
|---|
public Name.ExhibitFull[] eval(AllExhibitProperties aep,
Name.ExhibitFull[] in)
We return a set of names, possibly empty.
The result array contains no duplicates nor nulls (providing the input is similarly well-behaved) and is never null itself.
Designed to be overridden and have super() called to collect upstream results... By itself returns all the exhibits untouched, ie is a null filter/sorter.
Will attempt to filter in parallel if possible...
eval in class Exprpublic int hashCode()
hashCode in class Exprpublic boolean equals(java.lang.Object obj)
equals in class Expr
|
DHD Multimedia Gallery V1.60.69 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||