|
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.DirectIndex
uk.ac.gla.terrier.structures.BlockDirectIndex
public class BlockDirectIndex
Extended direct index that saves both block and field information about the terms that appear in a document.
| Constructor Summary | |
|---|---|
BlockDirectIndex(DocumentIndex docIndex)
Constructs an instance of the class with the given document index. |
|
BlockDirectIndex(DocumentIndex docIndex,
java.lang.String filename)
Constructs an instance of the class with the given document index. |
|
BlockDirectIndex(DocumentIndex docIndex,
java.lang.String path,
java.lang.String prefix)
|
|
| Method Summary | |
|---|---|
int[][] |
getTerms(int docid)
Returns a five dimensional array containing the term ids and the term frequencies for the given document. |
void |
print()
Prints out the direct index file. |
void |
setIndex(Index i)
let it know which index to use |
| Methods inherited from class uk.ac.gla.terrier.structures.DirectIndex |
|---|
close, reOpenLegacyBitFile |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockDirectIndex(DocumentIndex docIndex)
docIndex - The document index to be used
public BlockDirectIndex(DocumentIndex docIndex,
java.lang.String filename)
docIndex - The document index to be usedfilename - the non-default filename used for the underlying direct file.
public BlockDirectIndex(DocumentIndex docIndex,
java.lang.String path,
java.lang.String prefix)
| Method Detail |
|---|
public void setIndex(Index i)
setIndex in interface IndexConfigurablei - Index object to usepublic void print()
print in class DirectIndexpublic int[][] getTerms(int docid)
getTerms in class DirectIndexdocid - the id of the document whose terms we are looking for.
|
Terrier IR Platform 2.2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||