Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures
Class BlockDirectInvertedOutputStream

java.lang.Object
  extended by uk.ac.gla.terrier.structures.DirectInvertedOutputStream
      extended by uk.ac.gla.terrier.structures.BlockDirectInvertedOutputStream
All Implemented Interfaces:
Closeable

public class BlockDirectInvertedOutputStream
extends DirectInvertedOutputStream

Writes a block direct or block inverted index, when passed appropriate posting lists.

Since:
2.0
Version:
$Revision: 1.5 $
Author:
Craig Macdonald

Constructor Summary
BlockDirectInvertedOutputStream(BitOut out, int binaryBits)
          Creates a new output stream, writing to the specified BitOut implementation.
BlockDirectInvertedOutputStream(java.lang.String filename, int binaryBits)
          Creates a new output stream, writing a BitOutputStream to the specified file.
 
Method Summary
 
Methods inherited from class uk.ac.gla.terrier.structures.DirectInvertedOutputStream
close, getBitOffset, getBitOut, getByteOffset, writePostings, writePostings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockDirectInvertedOutputStream

public BlockDirectInvertedOutputStream(java.lang.String filename,
                                       int binaryBits)
                                throws java.io.IOException
Creates a new output stream, writing a BitOutputStream to the specified file. The number of binary bits for fields must also be specified.

Parameters:
filename - Location of the file to write to
binaryBits - the number of fields in this index
Throws:
java.io.IOException

BlockDirectInvertedOutputStream

public BlockDirectInvertedOutputStream(BitOut out,
                                       int binaryBits)
Creates a new output stream, writing to the specified BitOut implementation. The number of binary bits for fields must also be specified.

Parameters:
out - BitOut implementation to write the file to
binaryBits - the number of fields in this index

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow