|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
C - the filter category enumpublic interface QueryOptimizedFilter<C extends Enum<C>>
A filter which can, under certain circumstances, be optimized by using a "push down" technique, where the filter's functionality is expressed in the query that feeds the job that the filter is entered into. Query optimized filters should implement BOTH the regular categorize(...) method and the optimization-methods in this interface. There is no guarantee that the filter will be optimizing the query, but in cases where a filter is among the first steps in a job, and all succeeding steps depend on a single outcome of the particular filter, it will be allowed to optimize the query.
| Method Summary | |
|---|---|
boolean |
isOptimizable(C category)
Inquires the filter if a given category is optimizable by the use of a query. |
Query |
optimizeQuery(Query q,
C category)
Optimizes the filter execution by retrieving a query (as opposed to invoking the categorize(...) method for each row). |
| Methods inherited from interface org.eobjects.analyzer.beans.api.Filter |
|---|
categorize |
| Method Detail |
|---|
boolean isOptimizable(C category)
category - the category to optimize
Query optimizeQuery(Query q,
C category)
q - the query to optimize.category - the filter category to optimize.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||