public class BlockDirectIndex extends DirectIndex
PostingIndex.DocidSpecificDocumentIndex| Modifier and Type | Field and Description | 
|---|---|
| protected int | DocumentBlockCountDeltaDeprecated.  | 
docIndexdoi, fieldCount, file, index, postingConstructor, postingImplementation| Constructor and Description | 
|---|
| BlockDirectIndex(IndexOnDisk index,
                String structureName)Deprecated.  Constructs an instance of the class with 
 the given index, using the specified structure name. | 
| BlockDirectIndex(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 five dimensional array containing the 
 term ids and the term frequencies for the given document. | 
mainclose, getPostings, setPostingImplementationpublic BlockDirectIndex(IndexOnDisk index, String structureName) throws IOException
index - The index to be usedstructureName - the name of this direct indexIOExceptionpublic BlockDirectIndex(IndexOnDisk index, String structureName, Class<? extends IterablePosting> postingClass) throws IOException
index - structureName - postingClass - IOExceptionpublic int[][] getTerms(int docid)
                 throws IOException
getTerms in class DirectIndexdocid - the id of the document whose terms we are looking for.IOExceptionpublic int[][] getTerms(BitIndexPointer pointer) throws IOException
getTerms in class DirectIndexIOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow