Home » lucene-3.0.1-src » org.apache » lucene » store » instantiated » [javadoc | source]
org.apache.lucene.store.instantiated
public class: InstantiatedTermDocs [javadoc | source]
java.lang.Object
   org.apache.lucene.store.instantiated.InstantiatedTermDocs

All Implemented Interfaces:
    TermDocs

Direct Known Subclasses:
    InstantiatedTermPositions

A org.apache.lucene.index.TermDocs navigating an InstantiatedIndexReader .
Field Summary
protected  InstantiatedTermDocumentInformation currentDocumentInformation     
protected  InstantiatedTerm currentTerm     
Constructor:
 public InstantiatedTermDocs(InstantiatedIndexReader reader) 
Method from org.apache.lucene.store.instantiated.InstantiatedTermDocs Summary:
close,   doc,   freq,   next,   read,   seek,   seek,   skipTo
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.store.instantiated.InstantiatedTermDocs Detail:
 public  void close() 
    Does nothing
 public int doc() 
 public int freq() 
 public boolean next() 
 public int read(int[] docs,
    int[] freqs) 
 public  void seek(Term term) 
 public  void seek(TermEnum termEnum) 
 public boolean skipTo(int target) 
    Skips entries to the first beyond the current whose document number is greater than or equal to target.

    Returns true if there is such an entry.

    Behaves as if written:

      boolean skipTo(int target) {
        do {
          if (!next())
    	     return false;
        } while (target > doc());
        return true;
      }
    
    This implementation is considerably more efficient than that.