tangentum technologies    
 

Deutsch

   
   
 
    HitEnumeration (Phonetix)
Phonetix
v0.2

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.
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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

Phonetix
v0.2

Copyright © 1996-2003 Claus Engel. All Rights Reserved.