public class DirectIndex extends BitPostingIndex
PostingIndex.DocidSpecificDocumentIndex
Modifier and Type | Field and Description |
---|---|
protected DocumentIndex |
docIndex
Deprecated.
The document index employed for retrieving the document offsets.
|
protected static org.slf4j.Logger |
logger
Deprecated.
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, setPostingImplementation
protected 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 indexIOException
public DirectIndex(IndexOnDisk index, String structureName, Class<? extends IterablePosting> postingClass) throws IOException
index
- structureName
- postingClass
- IOException
public int[][] getTerms(int docid) throws IOException
docid
- the document identifier of the document which terms
we retrieve.IOException
public int[][] getTerms(BitIndexPointer pointer) throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow