|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.indexing.Indexer uk.ac.gla.terrier.indexing.BasicIndexer
public class BasicIndexer
BasicIndexer is the default indexer for Terrier. It takes
terms from each Document object provided by the collection, and
adds terms to temporary Lexicons, and into the DirectFile.
The documentIndex is updated to give the pointers into the Direct
file. The temporary lexicons are then merged into the main lexicon.
Inverted Index construction takes place as a second step.
This class replaces much of the createDirectIndex and
createInvertedIndex methods that used to be in DirectIndex.java
in 1.0beta. This class was originally authored by Gianni Amatti
and Vassilis Plachouras. It has been based on code removed from
the class DirectIndex.
Properties:
Indexer
,
BlockIndexer
Constructor Summary | |
---|---|
BasicIndexer(java.lang.String path,
java.lang.String prefix)
Constructs an instance of a BasicIndexer, using the given path name for storing the data structures. |
Method Summary | |
---|---|
void |
createDirectIndex(Collection[] collections)
Creates the direct index, the document index and the lexicon. |
void |
createInvertedIndex()
Creates the inverted index after having created the direct index, document index and lexicon. |
Methods inherited from class uk.ac.gla.terrier.indexing.Indexer |
---|
index, isUTFIndexing, main, merge, merge, useFieldInformation |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicIndexer(java.lang.String path, java.lang.String prefix)
path
- String the path where the datastructures will be created.prefix
- String the filename component of the data structuresMethod Detail |
---|
public void createDirectIndex(Collection[] collections)
createDirectIndex
in class Indexer
collections
- Collection[] the collections to be indexed.public void createInvertedIndex()
createInvertedIndex
in class Indexer
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |