HitEnumeration (Phonetix)
com.tangentum.phonetix.lucene
Class HitEnumeration
java.lang.Object
|
+--com.tangentum.phonetix.lucene.HitEnumeration
- All Implemented Interfaces:
- java.util.Enumeration
- public final class HitEnumeration
- extends java.lang.Object
- implements java.util.Enumeration
An HitEnumeration adapts the results of a Lucene search
to the standard Java collections.
- Author:
- Claus Engel
|
Constructor Summary |
HitEnumeration(org.apache.lucene.search.Hits hits)
Constructs an enumeration over the specified hits, which returns
each document only once. |
HitEnumeration(org.apache.lucene.search.Hits hits,
boolean unique)
Constructs an enumeration over the specified hits. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HitEnumeration
public HitEnumeration(org.apache.lucene.search.Hits hits,
boolean unique)
- Constructs an enumeration over the specified hits. If unique is
true, each document is only returned once.
HitEnumeration
public HitEnumeration(org.apache.lucene.search.Hits hits)
- Constructs an enumeration over the specified hits, which returns
each document only once.
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement in interface java.util.Enumeration
Copyright © 1996-2003 Claus Engel. All Rights Reserved.
|