gate.creole.annic.apache.lucene.index
Class MultiTermEnum

java.lang.Object
  extended by gate.creole.annic.apache.lucene.index.TermEnum
      extended by gate.creole.annic.apache.lucene.index.MultiTermEnum

 class MultiTermEnum
extends TermEnum


Field Summary
private  int docFreq
           
private  SegmentMergeQueue queue
           
private  Term term
           
 
Constructor Summary
MultiTermEnum(IndexReader[] readers, int[] starts, Term t)
           
 
Method Summary
 void close()
          Closes the enumeration to further activity, freeing resources.
 int docFreq()
          Returns the docFreq of the current Term in the enumeration.
 boolean next()
          Increments the enumeration to the next element.
 Term term()
          Returns the current Term in the enumeration.
 
Methods inherited from class gate.creole.annic.apache.lucene.index.TermEnum
skipTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private SegmentMergeQueue queue

term

private Term term

docFreq

private int docFreq
Constructor Detail

MultiTermEnum

public MultiTermEnum(IndexReader[] readers,
                     int[] starts,
                     Term t)
              throws IOException
Throws:
IOException
Method Detail

next

public boolean next()
             throws IOException
Description copied from class: TermEnum
Increments the enumeration to the next element. True if one exists.

Specified by:
next in class TermEnum
Throws:
IOException

term

public Term term()
Description copied from class: TermEnum
Returns the current Term in the enumeration.

Specified by:
term in class TermEnum

docFreq

public int docFreq()
Description copied from class: TermEnum
Returns the docFreq of the current Term in the enumeration.

Specified by:
docFreq in class TermEnum

close

public void close()
           throws IOException
Description copied from class: TermEnum
Closes the enumeration to further activity, freeing resources.

Specified by:
close in class TermEnum
Throws:
IOException