|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.terrier.indexing.Indexer
uk.ac.gla.terrier.indexing.BlockIndexer
public class BlockIndexer
An indexer that saves block information for the indexed terms. Properties:
Constructor Summary | |
---|---|
BlockIndexer(java.lang.String pathname)
Constructs an instance of this class, where the created data structures are stored in the given path. |
|
BlockIndexer(java.lang.String pathname,
java.lang.String prefix)
Constructs an instance of this class, where the created data structures are stored in the given path, with the given prefix on the filenames. |
Method Summary | |
---|---|
void |
createDirectIndex(Collection[] collections)
For the given collection, it iterates through the documents and creates the direct index, document index and lexicon, using information about blocks and possibly fields. |
void |
createInvertedIndex()
Creates the inverted index from the already created direct index, document index and lexicon. |
Methods inherited from class uk.ac.gla.terrier.indexing.Indexer |
---|
index, main, merge, merge |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockIndexer(java.lang.String pathname)
pathname
- String the path in which the created data structures
will be saved.public BlockIndexer(java.lang.String pathname, java.lang.String prefix)
pathname
- String the path in which the created data structures will be savedprefix
- String the prefix on the filenames of the created data structuresMethod Detail |
---|
public void createDirectIndex(Collection[] collections)
createDirectIndex
in class Indexer
collections
- Collection[] the collection to index.Indexer.createDirectIndex(uk.ac.gla.terrier.indexing.Collection[])
public void createInvertedIndex()
createInvertedIndex
in class Indexer
Indexer.createInvertedIndex()
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |