|
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.structures.DirectIndexInputStream uk.ac.gla.terrier.structures.BlockDirectIndexInputStream
public class BlockDirectIndexInputStream
This class reads the block field direct index structure sequentially, as an input stream.
BlockDirectIndex
Constructor Summary | |
---|---|
BlockDirectIndexInputStream()
A default constructor for the class that opens the direct file and the document index file with the default names |
|
BlockDirectIndexInputStream(java.lang.String Path,
java.lang.String Prefix)
|
|
BlockDirectIndexInputStream(java.lang.String Path,
java.lang.String Prefix,
DocumentIndexInputStream diis)
|
Method Summary | |
---|---|
int[][] |
getNextTerms()
Reads the next document's entry from the direct file. |
void |
print()
Prints out the block field direct index file. |
void |
setIndex(Index i)
let it know which index to use |
Methods inherited from class uk.ac.gla.terrier.structures.DirectIndexInputStream |
---|
close, getDocumentsSkipped, getNextTerms, reOpenLegacyBitFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockDirectIndexInputStream()
public BlockDirectIndexInputStream(java.lang.String Path, java.lang.String Prefix)
public BlockDirectIndexInputStream(java.lang.String Path, java.lang.String Prefix, DocumentIndexInputStream diis)
Method Detail |
---|
public void setIndex(Index i)
setIndex
in interface IndexConfigurable
i
- Index object to usepublic void print()
print
in class DirectIndexInputStream
public int[][] getNextTerms() throws java.io.IOException
getNextTerms
in class DirectIndexInputStream
java.io.IOException
- if an I/O error occurs
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |