This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

don't repeat last term

  • Loading branch information...
tjake committed Jul 19, 2011
1 parent e94db80 commit cb0fcbe475f247082802fd7fcef6d5687bcbc088
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/lucandra/LucandraTermEnum.java
@@ -103,6 +103,12 @@ public boolean next() throws IOException
currentTermEntry = null;
return false;
}
+ else
+ {
+ termView = termView.tailMap(currentTermEntry.getKey(), false);
+ currentTermEntry = termView.firstEntry();
+ }
+
}
return true;

0 comments on commit cb0fcbe

Please sign in to comment.