public class BlockDirectIndex extends DirectIndex
PostingIndex.DocidSpecificDocumentIndex
Modifier and Type | Field and Description |
---|---|
protected int |
DocumentBlockCountDelta
Deprecated.
|
docIndex
doi, 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.
|
main
close, getPostings, setPostingImplementation
public BlockDirectIndex(IndexOnDisk index, String structureName) throws IOException
index
- The index to be usedstructureName
- the name of this direct indexIOException
public BlockDirectIndex(IndexOnDisk index, String structureName, Class<? extends IterablePosting> postingClass) throws IOException
index
- structureName
- postingClass
- IOException
public int[][] getTerms(int docid) throws IOException
getTerms
in class DirectIndex
docid
- the id of the document whose terms we are looking for.IOException
public int[][] getTerms(BitIndexPointer pointer) throws IOException
getTerms
in class DirectIndex
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow