public class MultiDirectIterablePostingWithOffset extends Object implements IterablePosting
EOL
Constructor and Description |
---|
MultiDirectIterablePostingWithOffset(IterablePosting posting,
int idoffset) |
Modifier and Type | Method and Description |
---|---|
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.
|
int |
next(int targetId)
Move this iterator to the posting with specified id, or next posting after that.
|
void |
setId(int id)
It may be of benefit to update the frequency of the id in some applications.
|
public MultiDirectIterablePostingWithOffset(IterablePosting posting, int idoffset)
public int getId()
Posting
public int getFrequency()
Posting
getFrequency
in interface Posting
public int getDocumentLength()
Posting
getDocumentLength
in interface Posting
public void setId(int id)
Posting
public WritablePosting asWritablePosting()
Posting
asWritablePosting
in interface Posting
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public int next() throws IOException
IterablePosting
next
in interface IterablePosting
IOException
public int next(int targetId) throws IOException
IterablePosting
next
in interface IterablePosting
targetId
- id of the posting to find in this postingn list.IOException
public boolean endOfPostings()
IterablePosting
endOfPostings
in interface IterablePosting
Terrier 4.0. Copyright © 2004-2014 University of Glasgow