public class BlockInvertedIndex extends InvertedIndex implements IndexConfigurable
PostingIndex.DocidSpecificDocumentIndex
Modifier and Type | Field and Description |
---|---|
protected int |
DocumentBlockCountDelta
Deprecated.
|
FIELD_LOAD_FACTOR, logger, NORMAL_LOAD_FACTOR
doi, fieldCount, index, postingConstructor, postingImplementation
Constructor and Description |
---|
BlockInvertedIndex(IndexOnDisk index,
String structureName)
Deprecated.
Constructs an instance of the class with
|
BlockInvertedIndex(IndexOnDisk index,
String structureName,
DocumentIndex doi)
Deprecated.
Constructs an instance of the class with
|
BlockInvertedIndex(IndexOnDisk index,
String structureName,
DocumentIndex _doi,
Class<? extends IterablePosting> postingClass)
Deprecated.
Constructs an instance of the class with
|
Modifier and Type | Method and Description |
---|---|
int[][] |
getDocuments(BitIndexPointer pointer)
Deprecated.
Returns a 2D array containing the document ids,
the term frequencies, the field scores the block frequencies and
the block ids for the given documents.
|
void |
setIndex(Index i)
Deprecated.
let it know which index to use
|
getBitFiles, getDocuments, getPostings, print
close, setPostingImplementation
public BlockInvertedIndex(IndexOnDisk index, String structureName, DocumentIndex _doi, Class<? extends IterablePosting> postingClass) throws IOException
index
- structureName
- _doi
- postingClass
- IOException
public BlockInvertedIndex(IndexOnDisk index, String structureName, DocumentIndex doi) throws IOException
index
- structureName
- doi
- IOException
public BlockInvertedIndex(IndexOnDisk index, String structureName) throws IOException
index
- structureName
- IOException
public void setIndex(Index i)
setIndex
in interface IndexConfigurable
i
- Index object to usepublic int[][] getDocuments(BitIndexPointer pointer)
getDocuments
in class InvertedIndex
pointer
- start byte and bit offset of the postings in the inverted file,
together with number of postings to expectTerrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow