public class DirectIndex extends BitPostingIndex
PostingIndex.DocidSpecificDocumentIndex| Modifier and Type | Field and Description | 
|---|---|
| protected DocumentIndex | docIndexDeprecated.  The document index employed for retrieving the document offsets. | 
| protected static org.slf4j.Logger | loggerDeprecated.  The logger used for the Lexicon | 
doi, fieldCount, file, index, postingConstructor, postingImplementation| Constructor and Description | 
|---|
| DirectIndex(IndexOnDisk index,
           String structureName)Deprecated.  Constructs an instance of the class with 
 the given index, using the specified structure name. | 
| DirectIndex(IndexOnDisk index,
           String structureName,
           Class<? extends IterablePosting> postingClass)Deprecated.  Constructs an instance of the class with | 
| Modifier and Type | Method and Description | 
|---|---|
| int[][] | getTerms(BitIndexPointer pointer)Deprecated.  Get the terms for the document at the specified bit index pointer. | 
| int[][] | getTerms(int docid)Deprecated.  Returns a two dimensional array containing the 
 term ids and the term frequencies for 
 the given document. | 
| static void | main(String[] args)Deprecated.  main | 
close, getPostings, setPostingImplementationprotected static final org.slf4j.Logger logger
protected DocumentIndex docIndex
public DirectIndex(IndexOnDisk index, String structureName) throws IOException
index - The index to be usedstructureName - the name of this direct indexIOExceptionpublic DirectIndex(IndexOnDisk index, String structureName, Class<? extends IterablePosting> postingClass) throws IOException
index - structureName - postingClass - IOExceptionpublic int[][] getTerms(int docid)
                 throws IOException
docid - the document identifier of the document which terms 
                  we retrieve.IOExceptionpublic int[][] getTerms(BitIndexPointer pointer) throws IOException
IOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow