|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.DocumentPostingList
org.terrier.structures.indexing.FieldDocumentPostingList
org.terrier.structures.indexing.BlockFieldDocumentPostingList
public class BlockFieldDocumentPostingList
BlockFieldDocumentPostingList class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.terrier.structures.indexing.DocumentPostingList |
|---|
DocumentPostingList.postingIterator |
| Field Summary | |
|---|---|
protected int |
blockCount
number of blocks in this document. |
protected gnu.trove.THashMap<java.lang.String,gnu.trove.TIntHashSet> |
term_blocks
mapping term to blockids in this document |
| Fields inherited from class org.terrier.structures.indexing.FieldDocumentPostingList |
|---|
field_occurrences, fieldCount, fieldLengths |
| Fields inherited from class org.terrier.structures.indexing.DocumentPostingList |
|---|
AVG_DOCUMENT_UNIQUE_TERMS, documentLength, occurrences |
| Constructor Summary | |
|---|---|
BlockFieldDocumentPostingList(int NUM_FIELDS)
Constructs an instance of BlockFieldDocumentPostingList. |
|
| Method Summary | |
|---|---|
int[] |
getBlocks(java.lang.String term)
Get the blocks for the specified term |
int[][] |
getPostings()
returns the postings suitable to be written into the block direct index |
void |
insert(int tf,
java.lang.String t,
int[] fieldIds,
int blockId)
Insert a term into this document tf times, occurs at given block id, and in the given fields |
void |
insert(java.lang.String t,
int[] fieldIds,
int blockId)
Insert a term into this document, occurs at given block id, and in the given fields |
void |
insert(java.lang.String t,
int fieldId,
int blockId)
Insert a term into this document, occurs at given block id, and in the given field |
protected IterablePosting |
makePostingIterator(java.lang.String[] _terms,
int[] termIds)
|
| Methods inherited from class org.terrier.structures.indexing.FieldDocumentPostingList |
|---|
clear, getDocumentStatistics, getFieldFrequencies, insert, insert, insert, insert |
| Methods inherited from class org.terrier.structures.indexing.DocumentPostingList |
|---|
forEachTerm, getDocumentLength, getFrequency, getNumberOfPointers, getPostings2, getTermId, insert, insert, termSet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final gnu.trove.THashMap<java.lang.String,gnu.trove.TIntHashSet> term_blocks
protected int blockCount
| Constructor Detail |
|---|
public BlockFieldDocumentPostingList(int NUM_FIELDS)
NUM_FIELDS - | Method Detail |
|---|
public int[] getBlocks(java.lang.String term)
public void insert(java.lang.String t,
int fieldId,
int blockId)
public void insert(java.lang.String t,
int[] fieldIds,
int blockId)
public void insert(int tf,
java.lang.String t,
int[] fieldIds,
int blockId)
public int[][] getPostings()
getPostings in class FieldDocumentPostingList
protected IterablePosting makePostingIterator(java.lang.String[] _terms,
int[] termIds)
makePostingIterator in class FieldDocumentPostingList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||