|
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.structures.Index
public class Index
This class encapsulates all the Indexes at retrieval time. It is loaded by giving a path. Note, if you create other types of index other than normal and Block, then you'll may need to subclass this object. This class uses CollectionStatistics .getClasses() to determine which classes to use for the Lexicon, DocumentIndex, DirectIndex & the InvertedIndex. Fully qualified class names should be saved to the second line of the CollectionStatistics file (data.log)
Method Summary | |
---|---|
void |
close()
Closes the data structures of the index. |
static Index |
createIndex()
Factory method for creating an index. |
static Index |
createIndex(java.lang.String path,
java.lang.String prefix)
Factory method for creating an index. |
CollectionStatistics |
getCollectionStatistics()
|
DirectIndex |
getDirectIndex()
Return the direct index to use for retrieval. |
DocumentIndex |
getDocumentIndex()
Return the document index to use for retrieval. |
InvertedIndex |
getInvertedIndex()
Return the inverted index to use for retrieval. |
Lexicon |
getLexicon()
Return the lexicon to use for retrieval. |
java.lang.String |
getPath()
|
java.lang.String |
getPrefix()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void close()
public java.lang.String toString()
toString
in class java.lang.Object
public DirectIndex getDirectIndex()
public CollectionStatistics getCollectionStatistics()
public DocumentIndex getDocumentIndex()
public InvertedIndex getInvertedIndex()
public Lexicon getLexicon()
public java.lang.String getPath()
public java.lang.String getPrefix()
public static Index createIndex(java.lang.String path, java.lang.String prefix)
path
- String the path in which the
data structures will be created.prefix
- String the prefix of the files
to be created.public static Index createIndex()
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |