| java.lang.Object org.apache.lucene.index.TermInfosWriter
TermInfosWriter | final class TermInfosWriter (Code) | | This stores a monotonically increasing set of pairs in a
Directory. A TermInfos can be written once, in order.
|
Field Summary | |
final public static 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. | int | maxSkipLevels Expert: The maximum number of skip levels. | int | skipInterval Expert: The fraction of
TermDocs entries stored in skip tables,
used to accellerate
TermDocs.skipTo(int) . |
Method Summary | |
void | add(Term term, TermInfo ti) | void | add(int fieldNumber, char[] termText, int termTextStart, int termTextLength, TermInfo ti) Adds a new <, TermInfo> pair to the set. | void | close() Called to complete TermInfos creation. |
FORMAT | final public static int FORMAT(Code) | | The file format version, a negative number.
|
indexInterval | int indexInterval(Code) | | 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.
|
maxSkipLevels | int maxSkipLevels(Code) | | Expert: The maximum number of skip levels. Smaller values result in
slightly smaller indexes, but slower skipping in big posting lists.
|
skipInterval | int skipInterval(Code) | | 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.
|
add | void add(int fieldNumber, char[] termText, int termTextStart, int termTextLength, TermInfo ti) throws IOException(Code) | | 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.
|
|
|