Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
final class: TermInfosWriter [javadoc | source]
java.lang.Object
   org.apache.lucene.index.TermInfosWriter
This stores a monotonically increasing set of pairs in a Directory. A TermInfos can be written once, in order.
Field Summary
public static final  int FORMAT    The file format version, a negative number. 
 int indexInterval    Expert: The fraction of terms in the "dictionary" which should be stored in RAM. Smaller values use more memory, but make searching slightly faster, while larger values use less memory and make searching slightly slower. Searching is typically not dominated by dictionary lookup, so tweaking this is rarely useful. 
 int skipInterval    Expert: The fraction of TermDocs entries stored in skip tables, used to accellerate TermDocs#skipTo(int) . Larger values result in smaller indexes, greater acceleration, but fewer accelerable cases, while smaller values result in bigger indexes, less acceleration and more accelerable cases. More detailed experiments would be useful here. 
 int maxSkipLevels    Expert: The maximum number of skip levels. Smaller values result in slightly smaller indexes, but slower skipping in big posting lists. 
Constructor:
 TermInfosWriter(Directory directory,
    String segment,
    FieldInfos fis,
    int interval) throws IOException 
Method from org.apache.lucene.index.TermInfosWriter Summary:
add,   add,   close
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.TermInfosWriter Detail:
  void add(Term term,
    TermInfo ti) throws IOException 
  void add(int fieldNumber,
    char[] termText,
    int termTextStart,
    int termTextLength,
    TermInfo ti) throws IOException 
    Adds a new <, TermInfo> pair to the set. Term must be lexicographically greater than all previous Terms added. TermInfo pointers must be positive and greater than all previous.
  void close() throws IOException 
    Called to complete TermInfos creation.