|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.postings.IterablePostingImpl
org.terrier.structures.postings.ArrayOfIdsIterablePosting
public class ArrayOfIdsIterablePosting
An instance of IterablePostings that works with a passed array of ids
| Field Summary | |
|---|---|
protected int[] |
ids
ids of each of the entries in this posting list |
protected int |
indice
where we are in the current posting list |
| Fields inherited from interface org.terrier.structures.postings.IterablePosting |
|---|
EOL |
| Constructor Summary | |
|---|---|
ArrayOfIdsIterablePosting(int[] _ids)
Make a new IterablePosting using these ids |
|
| Method Summary | |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator. |
void |
close()
|
boolean |
endOfPostings()
Status method to see if this posting list iterator has been finished |
int |
getDocumentLength()
Return the length of the document for this posting. |
int |
getFrequency()
Return the frequency of the term in the current document |
int |
getId()
Return the id of the current posting. |
int |
next()
Move this iterator to the next posting. |
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications. |
| 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[] ids
protected int indice
| Constructor Detail |
|---|
public ArrayOfIdsIterablePosting(int[] _ids)
| Method Detail |
|---|
public int next()
throws java.io.IOException
java.io.IOExceptionpublic boolean endOfPostings()
public WritablePosting asWritablePosting()
public int getId()
public int getDocumentLength()
public int getFrequency()
public void setId(int id)
public void close()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||