On Wed, May 2, 2012 at 6:28 PM, Jean-Vincent Drean <jv(a)xwiki.com> wrote:
Hi,
In addition to QueryFilter#filterStatement(), this method would be
called from the QueryExecutor and it would allow the filter to mofidy
the result list of a query.
As Thomas pointed out in a recent discussion the fact that the result
list can be heavily modified by the filter (and indeed I already have
a filter transforming List<Object[]> to List<String>) doesn't match
with the API signature. I'd like to modify the proposal:
====================8<====================
/**
* Filter a list of query results. The result list can be returned
without modification.
*
* @param results the original result list.
* @return a filtered result list.
*/
List filterResults(List results);
====================8<====================
--
Jean-Vincent Drean,
XWiki.