|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.BitPostingIndex org.terrier.structures.InvertedIndex
public class InvertedIndex
This class implements the inverted index for performing retrieval, with field information optionally.
Field Summary | |
---|---|
protected DocumentIndex |
doi
|
static double |
FIELD_LOAD_FACTOR
This is used during retrieval for a rough guess sizing of the temporaryTerms arraylist in getDocuments() - retrieval with Fields. |
protected static org.apache.log4j.Logger |
logger
The logger used for the Lexicon |
static double |
NORMAL_LOAD_FACTOR
This is used during retrieval for a rough guess sizing of the temporaryTerms arraylist in getDocuments(). |
Fields inherited from class org.terrier.structures.BitPostingIndex |
---|
fieldCount, file, index, postingConstructor, postingImplementation |
Constructor Summary | |
---|---|
InvertedIndex(Index index,
java.lang.String structureName)
Construct an instance of the class with |
|
InvertedIndex(Index index,
java.lang.String structureName,
DocumentIndex _doi)
Construct an instance of the class with |
|
InvertedIndex(Index index,
java.lang.String structureName,
DocumentIndex _doi,
java.lang.Class<? extends IterablePosting> postingClass)
Construct an instance of the class with |
Method Summary | |
---|---|
BitInSeekable[] |
getBitFiles()
Get the BitFiles |
int[][] |
getDocuments(BitIndexPointer pointer)
Get the documents for for the posting list using the pointer given |
int[][] |
getDocuments(LexiconEntry le)
Get the documents for the specified term (lexicon entry for the term) |
IterablePosting |
getPostings(BitIndexPointer pointer)
Get the posting given a pointer |
void |
print()
Print out the Inverted Index |
Methods inherited from class org.terrier.structures.BitPostingIndex |
---|
close |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
public static final double NORMAL_LOAD_FACTOR
public static final double FIELD_LOAD_FACTOR
protected DocumentIndex doi
Constructor Detail |
---|
public InvertedIndex(Index index, java.lang.String structureName) throws java.io.IOException
index
- structureName
-
java.io.IOException
public InvertedIndex(Index index, java.lang.String structureName, DocumentIndex _doi) throws java.io.IOException
index
- structureName
- _doi
-
java.io.IOException
public InvertedIndex(Index index, java.lang.String structureName, DocumentIndex _doi, java.lang.Class<? extends IterablePosting> postingClass) throws java.io.IOException
index
- structureName
- _doi
- postingClass
-
java.io.IOException
Method Detail |
---|
public BitInSeekable[] getBitFiles()
public void print()
public IterablePosting getPostings(BitIndexPointer pointer) throws java.io.IOException
BitPostingIndex
getPostings
in interface PostingIndex<BitIndexPointer>
getPostings
in class BitPostingIndex
java.io.IOException
public int[][] getDocuments(LexiconEntry le)
public int[][] getDocuments(BitIndexPointer pointer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |