|
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.DirectInvertedOutputStream
public class DirectInvertedOutputStream
Writes a block direct or block inverted index, when passed appropriate posting lists.
Constructor Summary | |
---|---|
DirectInvertedOutputStream(BitOut out,
int binaryBits)
Creates a new output stream, writing to the specified BitOut implementation. |
|
DirectInvertedOutputStream(java.lang.String filename,
int binaryBits)
Creates a new output stream, writing a BitOutputStream to the specified file. |
Method Summary | |
---|---|
void |
close()
close this object. |
byte |
getBitOffset()
Return the current offset in bits in the written file |
BitOut |
getBitOut()
Return the underlying BitOut implementation being used by the class |
long |
getByteOffset()
Return the current offset in bytes in the written file |
void |
writePostings(int[][] postings,
int firstId)
Write out the specified postings. |
void |
writePostings(int[][] postings,
int startOffset,
int Length,
int firstId)
Write out a range of the specified postings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectInvertedOutputStream(java.lang.String filename, int binaryBits) throws java.io.IOException
filename
- Location of the file to write tobinaryBits
- the number of fields in this index
java.io.IOException
public DirectInvertedOutputStream(BitOut out, int binaryBits)
out
- BitOut implementation to write the file tobinaryBits
- the number of fields in this indexMethod Detail |
---|
public void writePostings(int[][] postings, int firstId) throws java.io.IOException
postings
- The postings to write outfirstId
- the (delta) value of the first docid to write out.
java.io.IOException
public void writePostings(int[][] postings, int startOffset, int Length, int firstId) throws java.io.IOException
postings
- The postings to write outstartOffset
- The location of the first posting to write out.Length
- The number of postings to be written out.firstId
- the (delta) value of the first docid to write out.
java.io.IOException
public void close()
close
in interface Closeable
public long getByteOffset()
public byte getBitOffset()
public BitOut getBitOut()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |