public class ArrayOfIdsIterablePosting extends IterablePostingImpl implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
ids
ids of each of the entries in this posting list
|
protected int |
indice
where we are in the current posting list
|
END_OF_LIST, EOL| Constructor and Description |
|---|
ArrayOfIdsIterablePosting(int[] _ids)
Make a new IterablePosting using these ids
|
| Modifier and Type | Method and Description |
|---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
ArrayOfIdsIterablePosting |
clone() |
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 |
reset() |
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications.
|
nextprotected int[] ids
protected int indice
public ArrayOfIdsIterablePosting(int[] _ids)
public int next()
throws IOException
next in interface IterablePostingIOExceptionpublic boolean endOfPostings()
endOfPostings in interface IterablePostingpublic WritablePosting asWritablePosting()
asWritablePosting in interface Postingpublic int getId()
public int getDocumentLength()
getDocumentLength in interface Postingpublic int getFrequency()
getFrequency in interface Postingpublic void setId(int id)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void reset()
public ArrayOfIdsIterablePosting clone()
Terrier Information Retrieval Platform 5.2. Copyright © 2004-2019, University of Glasgow