Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures
Class InvertedIndexInputStream

java.lang.Object
  extended by uk.ac.gla.terrier.structures.InvertedIndexInputStream
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
BlockInvertedIndexInputStream

public class InvertedIndexInputStream
extends java.lang.Object
implements Closeable

Reads an InvertedIndex as a stream

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

Constructor Summary
InvertedIndexInputStream(BitIn invFile, LexiconInputStream lis)
           
InvertedIndexInputStream(java.lang.String filename, LexiconInputStream lis)
           
InvertedIndexInputStream(java.lang.String path, java.lang.String prefix, LexiconInputStream lis)
           
 
Method Summary
 void close()
          close this index data structure
 int[][] getNextDocuments()
           
 void print()
           
 void reOpenLegacyBitFile()
          forces the data structure to reopen the underlying bitfile using the legacy implementation of BitFile (OldBitFile)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvertedIndexInputStream

public InvertedIndexInputStream(java.lang.String path,
                                java.lang.String prefix,
                                LexiconInputStream lis)
                         throws java.io.IOException
Throws:
java.io.IOException

InvertedIndexInputStream

public InvertedIndexInputStream(java.lang.String filename,
                                LexiconInputStream lis)
                         throws java.io.IOException
Throws:
java.io.IOException

InvertedIndexInputStream

public InvertedIndexInputStream(BitIn invFile,
                                LexiconInputStream lis)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

reOpenLegacyBitFile

public void reOpenLegacyBitFile()
                         throws java.io.IOException
forces the data structure to reopen the underlying bitfile using the legacy implementation of BitFile (OldBitFile)

Throws:
java.io.IOException

getNextDocuments

public int[][] getNextDocuments()
                         throws java.io.IOException
Throws:
java.io.IOException

print

public void print()

close

public void close()
Description copied from interface: Closeable
close this index data structure

Specified by:
close in interface Closeable

Terrier IR Platform
2.2.1

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