lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1635597 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java
Date Thu, 30 Oct 2014 19:28:10 GMT
Author: jpountz
Date: Thu Oct 30 19:28:10 2014
New Revision: 1635597

URL: http://svn.apache.org/r1635597
Log:
LUCENE-6035: FilteredDocIdSet(Iterator) expose the delegate instance.

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java?rev=1635597&r1=1635596&r2=1635597&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSet.java
Thu Oct 30 19:28:10 2014
@@ -52,7 +52,12 @@ public abstract class FilteredDocIdSet e
   public FilteredDocIdSet(DocIdSet innerSet) {
     _innerSet = innerSet;
   }
-  
+
+  /** Return the wrapped {@link DocIdSet}. */
+  public DocIdSet getDelegate() {
+    return _innerSet;
+  }
+
   /** This DocIdSet implementation is cacheable if the inner set is cacheable. */
   @Override
   public boolean isCacheable() {

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java?rev=1635597&r1=1635596&r2=1635597&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/FilteredDocIdSetIterator.java
Thu Oct 30 19:28:10 2014
@@ -41,6 +41,11 @@ public abstract class FilteredDocIdSetIt
     doc = -1;
   }
 
+  /** Return the wrapped {@link DocIdSetIterator}. */
+  public DocIdSetIterator getDelegate() {
+    return _innerIter;
+  }
+
   /**
    * Validation method to determine whether a docid should be in the result set.
    * @param doc docid to be tested



Mime
View raw message