Package org.terrier.structures.bit
Class DirectInvertedDocidOnlyOuptutStream
- java.lang.Object
-
- org.terrier.structures.AbstractPostingOutputStream
-
- org.terrier.structures.bit.DirectInvertedOutputStream
-
- org.terrier.structures.bit.DirectInvertedDocidOnlyOuptutStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class DirectInvertedDocidOnlyOuptutStream extends DirectInvertedOutputStream
A BitPosting writing class that doesn't write any frequency information- Since:
- 3.0
- Author:
- Craig Macdonald
- See Also:
CompressionFactory.BitIdOnlyCompressionConfiguration
-
-
Field Summary
-
Fields inherited from class org.terrier.structures.bit.DirectInvertedOutputStream
lastDocid, logger, output
-
-
Constructor Summary
Constructors Constructor Description DirectInvertedDocidOnlyOuptutStream(java.lang.String filename)
Constructs an instance of the class withDirectInvertedDocidOnlyOuptutStream(BitOut out)
Constructs an instance of the class with
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writePostingNotDocid(Posting p)
Hook method for writing out the remainder of the posting-
Methods inherited from class org.terrier.structures.bit.DirectInvertedOutputStream
close, getBitOffset, getBitOut, getByteOffset, getLastDocidWritten, getOffset, getPostingIteratorClass, writeNoFieldPostings, writePostings, writePostings, writePostings, writePostings, writePostings, writePostings
-
-
-
-
Constructor Detail
-
DirectInvertedDocidOnlyOuptutStream
public DirectInvertedDocidOnlyOuptutStream(java.lang.String filename) throws java.io.IOException
Constructs an instance of the class with- Parameters:
filename
-- Throws:
java.io.IOException
-
DirectInvertedDocidOnlyOuptutStream
public DirectInvertedDocidOnlyOuptutStream(BitOut out)
Constructs an instance of the class with- Parameters:
out
-
-
-
Method Detail
-
writePostingNotDocid
protected void writePostingNotDocid(Posting p) throws java.io.IOException
Description copied from class:DirectInvertedOutputStream
Hook method for writing out the remainder of the posting- Overrides:
writePostingNotDocid
in classDirectInvertedOutputStream
- Throws:
java.io.IOException
-
-