From: <tho...@us...> - 2010-09-29 13:43:21
|
Revision: 3675 http://bigdata.svn.sourceforge.net/bigdata/?rev=3675&view=rev Author: thompsonbry Date: 2010-09-29 13:43:15 +0000 (Wed, 29 Sep 2010) Log Message: ----------- FilterBase needs to layer on itself first, then the chained filters in order. Modified Paths: -------------- branches/QUADS_QUERY_BRANCH/ctc-striterators/src/java/cutthecrap/utils/striterators/FilterBase.java Modified: branches/QUADS_QUERY_BRANCH/ctc-striterators/src/java/cutthecrap/utils/striterators/FilterBase.java =================================================================== --- branches/QUADS_QUERY_BRANCH/ctc-striterators/src/java/cutthecrap/utils/striterators/FilterBase.java 2010-09-29 11:52:20 UTC (rev 3674) +++ branches/QUADS_QUERY_BRANCH/ctc-striterators/src/java/cutthecrap/utils/striterators/FilterBase.java 2010-09-29 13:43:15 UTC (rev 3675) @@ -108,8 +108,10 @@ } final public Iterator filter(Iterator src, final Object context) { - // makes most sense to consider the filterchain as preprocessing the - // src prior to application of this filter. + // wrap src with _this_ filter. + src = filterOnce(src, context); +//// makes most sense to consider the filterchain as preprocessing the +//// src prior to application of this filter. if (filterChain != null) { // wrap source with each additional filter from the filter chain. for (IFilter filter : filterChain) { @@ -117,8 +119,6 @@ } } - // wrap src with _this_ filter. - src = filterOnce(src, context); return src; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |