org.terrier.structures
Class FieldDirectInvertedOutputStream
java.lang.Object
org.terrier.structures.DirectInvertedOutputStream
org.terrier.structures.FieldDirectInvertedOutputStream
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- BlockFieldDirectInvertedOutputStream
public class FieldDirectInvertedOutputStream
- extends DirectInvertedOutputStream
Bit out class for writing a posting list with fields
Methods inherited from class org.terrier.structures.DirectInvertedOutputStream |
close, getBitOffset, getBitOut, getByteOffset, getOffset, writeNoFieldPostings, writePostings, writePostings, writePostings, writePostings, writePostings, writePostings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldDirectInvertedOutputStream
public FieldDirectInvertedOutputStream(BitOut out)
- Constructs an instance of the class with
- Parameters:
out
-
FieldDirectInvertedOutputStream
public FieldDirectInvertedOutputStream(String filename)
throws IOException
- Constructs an instance of the class with
- Parameters:
filename
-
- Throws:
IOException
getPostingIteratorClass
public Class<? extends IterablePosting> getPostingIteratorClass()
- Description copied from class:
DirectInvertedOutputStream
- Returns the IterablePosting class to use for reading structure written by this class
- Overrides:
getPostingIteratorClass
in class DirectInvertedOutputStream
writePostingNotDocid
protected void writePostingNotDocid(Posting _p)
throws IOException
- Description copied from class:
DirectInvertedOutputStream
- Hook method for writing out the remainder of the posting
- Overrides:
writePostingNotDocid
in class DirectInvertedOutputStream
- Throws:
IOException
Terrier 3.6. Copyright © 2004-2011 University of Glasgow