| 
 | 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.DirectIndexBuilder
uk.ac.gla.terrier.structures.indexing.BlockDirectIndexBuilder
public class BlockDirectIndexBuilder
Builds a direct index using block and possibly field information.
| Constructor Summary | |
|---|---|
| BlockDirectIndexBuilder(DocumentIndex docIndex)Deprecated. DocumentIndex is no longer required to use a DirectIndexBuilder | |
| BlockDirectIndexBuilder(Index i) | |
| BlockDirectIndexBuilder(java.lang.String filename)Constructs an instance of the class with the direct file being written to filename. | |
| BlockDirectIndexBuilder(java.lang.String path,
                        java.lang.String prefix)Constructs an instance of the class with the direct file being written in the index space defined | |
| Method Summary | |
|---|---|
|  FilePosition | addDocument(int[][] terms)Adds a document to the direct index and returns the offset in the direct index after adding the document. | 
|  void | finishedCollections()When the indexing has reached the end of all collections, this method writes the buffers on disk and closes the corresponding files. | 
| Methods inherited from class uk.ac.gla.terrier.structures.indexing.DirectIndexBuilder | 
|---|
| close, flushBuffer, getLastEndOffset, resetBuffer | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public BlockDirectIndexBuilder(DocumentIndex docIndex)
docIndex - The document index to be usedpublic BlockDirectIndexBuilder(java.lang.String filename)
filename - the non-default filename used for 
                the underlying direct file.
public BlockDirectIndexBuilder(java.lang.String path,
                               java.lang.String prefix)
public BlockDirectIndexBuilder(Index i)
| Method Detail | 
|---|
public FilePosition addDocument(int[][] terms)
                         throws java.io.IOException
addDocument in class DirectIndexBuilderterms - int[][] the array of the 
                document's terms and tfs, blocks, etc.
java.io.IOExceptionpublic void finishedCollections()
finishedCollections in class DirectIndexBuilder| 
 | Terrier IR Platform 2.2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||