|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.terrier.structures.indexing.DocumentPostingList
uk.ac.gla.terrier.structures.indexing.BlockDocumentPostingList
public class BlockDocumentPostingList
Represents the postings of one document, and saves block (term position) information. Uses HashMaps internally.
Properties:
DocumentPostingList
Constructor Summary | |
---|---|
BlockDocumentPostingList()
Instantiate a new block document posting list. |
|
BlockDocumentPostingList(int fieldCount)
Instantiate a new block document posting list. |
Method Summary | |
---|---|
int[][] |
getPostings()
returns the postings suitable to be written into the block direct index |
void |
insert(java.lang.String t,
int blockId)
Insert a term into this document, occurs at given block id |
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 |
Methods inherited from class uk.ac.gla.terrier.structures.indexing.DocumentPostingList |
---|
clear, getDocumentLength, getNumberOfPointers, insert, insert |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlockDocumentPostingList()
public BlockDocumentPostingList(int fieldCount)
Method Detail |
---|
public void insert(java.lang.String t, int blockId)
insert
in class DocumentPostingList
t
- the Term being insertedblockId
- the id of the field that the term was found inpublic void insert(java.lang.String t, int fieldId, int blockId)
public void insert(java.lang.String t, int[] fieldIds, int blockId)
public int[][] getPostings()
getPostings
in class DocumentPostingList
|
Terrier IR Platform 1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |