|
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
public class DirectIndexInputStream
This class reads the direct index structure, sequentially, as an input stream.
DirectIndex
Constructor Summary | |
---|---|
DirectIndexInputStream()
|
|
DirectIndexInputStream(java.lang.String path,
java.lang.String prefix)
|
|
DirectIndexInputStream(java.lang.String path,
java.lang.String prefix,
DocumentIndexInputStream doiis)
|
Method Summary | |
---|---|
void |
close()
Closes the underlying gamma compressed file. |
int |
getDocumentsSkipped()
Returns the value of the documents that were skipped during a call to the method getNextTerms() |
int[][] |
getNextTerms()
One call returns all the data for one document - [0][] is term ids, [1][] is frequency, [2][] is fields. |
int[][] |
getNextTerms(long endByteOffset,
byte endBitOffset)
|
void |
print()
Prints out the html direct index file. |
void |
reOpenLegacyBitFile()
forces the data structure to reopen the underlying bitfile using the legacy implementation of BitFile (OldBitFile) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectIndexInputStream()
public DirectIndexInputStream(java.lang.String path, java.lang.String prefix, DocumentIndexInputStream doiis)
public DirectIndexInputStream(java.lang.String path, java.lang.String prefix)
Method Detail |
---|
public void reOpenLegacyBitFile() throws java.io.IOException
java.io.IOException
public int[][] getNextTerms() throws java.io.IOException
java.io.IOException
- if an I/O error occurspublic int[][] getNextTerms(long endByteOffset, byte endBitOffset) throws java.io.IOException
java.io.IOException
public void print()
public void close()
close
in interface Closeable
public int getDocumentsSkipped()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |