|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.postings.IterablePostingImpl org.terrier.structures.postings.ArrayOfIdsIterablePosting org.terrier.structures.postings.ArrayOfBasicIterablePosting
public class ArrayOfBasicIterablePosting
An instance of IterablePostings that works with passed arrays of ids and frequencies
Field Summary | |
---|---|
protected int[] |
frequencies
frequencies of all of the stored postings |
Fields inherited from class org.terrier.structures.postings.ArrayOfIdsIterablePosting |
---|
ids, indice |
Fields inherited from interface org.terrier.structures.postings.IterablePosting |
---|
EOL |
Constructor Summary | |
---|---|
ArrayOfBasicIterablePosting(int[] _ids,
int[] _freqs)
Make a new posting list with these ids and frequencies |
Method Summary | |
---|---|
int |
getFrequency()
Return the frequency of the term in the current document |
Methods inherited from class org.terrier.structures.postings.ArrayOfIdsIterablePosting |
---|
asWritablePosting, close, endOfPostings, getDocumentLength, getId, next, setId |
Methods inherited from class org.terrier.structures.postings.IterablePostingImpl |
---|
next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int[] frequencies
Constructor Detail |
---|
public ArrayOfBasicIterablePosting(int[] _ids, int[] _freqs)
Method Detail |
---|
public int getFrequency()
getFrequency
in interface Posting
getFrequency
in class ArrayOfIdsIterablePosting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |