public class MemoryIterablePosting extends IterablePostingImpl
Modifier and Type | Field and Description |
---|---|
protected DocumentIndex |
doi |
protected int |
index |
protected gnu.trove.TIntArrayList |
pl_doc |
EOL
Constructor and Description |
---|
MemoryIterablePosting(DocumentIndex doi,
gnu.trove.TIntArrayList pl_doc,
gnu.trove.TIntArrayList pl_freq)
Constructor.
|
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.
|
void |
setId(int id)
Not implemented.
|
next
protected int index
protected DocumentIndex doi
protected gnu.trove.TIntArrayList pl_doc
public MemoryIterablePosting(DocumentIndex doi, gnu.trove.TIntArrayList pl_doc, gnu.trove.TIntArrayList pl_freq)
public int getFrequency()
public int getDocumentLength()
public int getId()
public int next() throws IOException
IOException
public boolean endOfPostings()
public void close() throws IOException
IOException
public void setId(int id)
public WritablePosting asWritablePosting()
Terrier 4.0. Copyright © 2004-2014 University of Glasgow