public class BlockDirectInvertedOutputStream extends DirectInvertedOutputStream
logger, output
Constructor and Description |
---|
BlockDirectInvertedOutputStream(BitOut out)
Creates a new output stream, writing to the specified BitOut implementation.
|
BlockDirectInvertedOutputStream(String filename)
Creates a new output stream, writing a BitOutputStream to the specified file.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends IterablePosting> |
getPostingIteratorClass()
Returns the IterablePosting class to use for reading structure written by this class
|
protected BitIndexPointer |
writeNoFieldPostings(int[][] postings,
int offset,
int length,
int firstId)
Writes the given block postings to the bit file.
|
protected void |
writePostingNotDocid(Posting _p)
Hook method for writing out the remainder of the posting
|
close, getBitOffset, getBitOut, getByteOffset, getOffset, writePostings, writePostings, writePostings, writePostings, writePostings, writePostings
public BlockDirectInvertedOutputStream(String filename) throws IOException
filename
- Location of the file to write toIOException
public BlockDirectInvertedOutputStream(BitOut out)
out
- BitOut implementation to write the file topublic Class<? extends IterablePosting> getPostingIteratorClass()
DirectInvertedOutputStream
getPostingIteratorClass
in class DirectInvertedOutputStream
protected BitIndexPointer writeNoFieldPostings(int[][] postings, int offset, int length, int firstId) throws IOException
writeNoFieldPostings
in class DirectInvertedOutputStream
postings
- the postings list to write.firstId
- the first identifier to write. This can be
an id plus one, or the gap of the current id and the previous one.offset
- The location of the first posting to write out.length
- The number of postings to be written out.IOException
- if an error occurs during writing to a file.protected void writePostingNotDocid(Posting _p) throws IOException
DirectInvertedOutputStream
writePostingNotDocid
in class DirectInvertedOutputStream
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow