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, writePostingspublic BlockDirectInvertedOutputStream(String filename) throws IOException
filename - Location of the file to write toIOExceptionpublic BlockDirectInvertedOutputStream(BitOut out)
out - BitOut implementation to write the file topublic Class<? extends IterablePosting> getPostingIteratorClass()
DirectInvertedOutputStreamgetPostingIteratorClass in class DirectInvertedOutputStreamprotected BitIndexPointer writeNoFieldPostings(int[][] postings, int offset, int length, int firstId) throws IOException
writeNoFieldPostings in class DirectInvertedOutputStreampostings - 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
DirectInvertedOutputStreamwritePostingNotDocid in class DirectInvertedOutputStreamIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow