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

java.lang.Object
  extended by gate.creole.annic.apache.lucene.index.MultiTermDocs
      extended by gate.creole.annic.apache.lucene.index.MultiTermPositions
All Implemented Interfaces:
TermDocs, TermPositions

 class MultiTermPositions
extends MultiTermDocs
implements TermPositions


Field Summary
 
Fields inherited from class gate.creole.annic.apache.lucene.index.MultiTermDocs
base, current, pointer, readers, starts, term
 
Constructor Summary
MultiTermPositions(IndexReader[] r, int[] s)
           
 
Method Summary
 int nextPosition()
          Returns next position in the current document.
protected  TermDocs termDocs(IndexReader reader)
           
 
Methods inherited from class gate.creole.annic.apache.lucene.index.MultiTermDocs
close, doc, freq, next, read, seek, seek, skipTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gate.creole.annic.apache.lucene.index.TermDocs
close, doc, freq, next, read, seek, seek, skipTo
 

Constructor Detail

MultiTermPositions

public MultiTermPositions(IndexReader[] r,
                          int[] s)
Method Detail

termDocs

protected TermDocs termDocs(IndexReader reader)
                     throws IOException
Overrides:
termDocs in class MultiTermDocs
Throws:
IOException

nextPosition

public int nextPosition()
                 throws IOException
Description copied from interface: TermPositions
Returns next position in the current document. It is an error to call this more than TermDocs.freq() times without calling TermDocs.next()

This is invalid until TermDocs.next() is called for the first time.

Specified by:
nextPosition in interface TermPositions
Throws:
IOException