| 
 | Terrier IR Platform 2.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.gla.terrier.structures.indexing.InvertedIndexBuilder
uk.ac.gla.terrier.structures.indexing.BlockInvertedIndexBuilder
public class BlockInvertedIndexBuilder
Builds an inverted index saving term-block information. It optionally saves term-field information as well.
Algorithm:
 Lexicon term selection: There are two strategies of selecting the
 number of terms to read from the lexicon. The trade-off here is to read a
 small enough number of terms into memory such that the occurrences of all
 those terms from the direct file can fit in memory. On the other hand, the
 less terms that are read implies more iterations, which is I/O expensive, as
 the entire direct file has to be read for every iteration.
 The two strategies are:
 
Properties:
| Field Summary | 
|---|
| Fields inherited from class uk.ac.gla.terrier.structures.indexing.InvertedIndexBuilder | 
|---|
| numberOfDocuments, numberOfPointers, numberOfTokens, numberOfUniqueTerms | 
| Constructor Summary | |
|---|---|
| BlockInvertedIndexBuilder()Deprecated. | |
| BlockInvertedIndexBuilder(Index index) | |
| BlockInvertedIndexBuilder(java.lang.String filename)Deprecated. use this() or this(String, String) instead | |
| BlockInvertedIndexBuilder(java.lang.String path,
                          java.lang.String prefix)Deprecated. | |
| Method Summary | |
|---|---|
|  void | createInvertedIndex()This method creates the block html inverted index. | 
| Methods inherited from class uk.ac.gla.terrier.structures.indexing.InvertedIndexBuilder | 
|---|
| close, displayMemoryUsage, getLexInputStream, getLexOutputStream | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public BlockInvertedIndexBuilder()
public BlockInvertedIndexBuilder(java.lang.String filename)
filename - the name of the inverted file
public BlockInvertedIndexBuilder(java.lang.String path,
                                 java.lang.String prefix)
public BlockInvertedIndexBuilder(Index index)
| Method Detail | 
|---|
public void createInvertedIndex()
createInvertedIndex in class InvertedIndexBuilder| 
 | Terrier IR Platform 2.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||