lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r783370 - /lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java
Date Wed, 10 Jun 2009 14:39:12 GMT
Author: mikemccand
Date: Wed Jun 10 14:39:12 2009
New Revision: 783370

URL: http://svn.apache.org/viewvc?rev=783370&view=rev
Log:
LUCENE-1680: make prefix Term accessible

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java?rev=783370&r1=783369&r2=783370&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/PrefixTermEnum.java Wed Jun 10 14:39:12
2009
@@ -15,7 +15,7 @@
  */
 public class PrefixTermEnum extends FilteredTermEnum {
 
-  private Term prefix;
+  private final Term prefix;
   private boolean endEnum = false;
 
   public PrefixTermEnum(IndexReader reader, Term prefix) throws IOException {
@@ -31,6 +31,10 @@
   protected boolean endEnum() {
     return endEnum;
   }
+  
+  protected Term getPrefixTerm() {
+      return prefix;
+  }
 
   protected boolean termCompare(Term term) {
     if (term.field() == prefix.field() && term.text().startsWith(prefix.text()))
{                                                                              



Mime
View raw message