org.terrier.structures
Class BlockFieldDirectInvertedOutputStream

java.lang.Object
  extended by org.terrier.structures.DirectInvertedOutputStream
      extended by org.terrier.structures.FieldDirectInvertedOutputStream
          extended by org.terrier.structures.BlockFieldDirectInvertedOutputStream
All Implemented Interfaces:
java.io.Closeable

public class BlockFieldDirectInvertedOutputStream
extends FieldDirectInvertedOutputStream

Writes out a blocks and fields direct index to an output stream


Field Summary
 
Fields inherited from class org.terrier.structures.DirectInvertedOutputStream
logger, output
 
Constructor Summary
BlockFieldDirectInvertedOutputStream(BitOut out)
          Constructs an instance of the class with
BlockFieldDirectInvertedOutputStream(java.lang.String filename)
          Constructs an instance of the class with
 
Method Summary
 java.lang.Class<? extends IterablePosting> getPostingIteratorClass()
          Returns the IterablePosting class to use for reading structure written by this class
protected  void writePostingNotDocid(Posting _p)
          Hook method for writing out the remainder of the posting
 
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
 

Constructor Detail

BlockFieldDirectInvertedOutputStream

public BlockFieldDirectInvertedOutputStream(BitOut out)
Constructs an instance of the class with

Parameters:
out -

BlockFieldDirectInvertedOutputStream

public BlockFieldDirectInvertedOutputStream(java.lang.String filename)
                                     throws java.io.IOException
Constructs an instance of the class with

Parameters:
filename -
Throws:
java.io.IOException
Method Detail

getPostingIteratorClass

public java.lang.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 FieldDirectInvertedOutputStream

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 class FieldDirectInvertedOutputStream
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow