LUCENE-5186: Added CachingWrapperFilter.getFilter.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1516773 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2013-08-23 09:21:21 +00:00
parent f6318fab03
commit 43af17b7b4
2 changed files with 11 additions and 0 deletions

View File

@ -104,6 +104,9 @@ New features
* LUCENE-2750: Added PForDeltaDocIdSet, an in-memory doc id set implementation * LUCENE-2750: Added PForDeltaDocIdSet, an in-memory doc id set implementation
based on the PFOR encoding. (Adrien Grand) based on the PFOR encoding. (Adrien Grand)
* LUCENE-5186: Added CachingWrapperFilter.getFilter in order to be able to get
the wrapped filter. (Trejkaz via Adrien Grand)
Bug Fixes Bug Fixes
* LUCENE-5116: IndexWriter.addIndexes(IndexReader...) should drop empty (or all * LUCENE-5116: IndexWriter.addIndexes(IndexReader...) should drop empty (or all

View File

@ -49,6 +49,14 @@ public class CachingWrapperFilter extends Filter {
this.filter = filter; this.filter = filter;
} }
/**
* Gets the contained filter.
* @return the contained filter.
*/
public Filter getFilter() {
return filter;
}
/** /**
* Provide the DocIdSet to be cached, using the DocIdSet provided * Provide the DocIdSet to be cached, using the DocIdSet provided
* by the wrapped Filter. <p>This implementation returns the given {@link DocIdSet}, * by the wrapped Filter. <p>This implementation returns the given {@link DocIdSet},