#include <DocListIterator.hpp>
Inheritance diagram for indri::index::DocListIterator:
Public Methods | |
DocListIterator (File &segment, int termID, File::offset_type seekLocation=0, INT64 estimatedDataLength=KEYFILE_DOCLISTITERATOR_DEFAULT_BUFFERSIZE) | |
~DocListIterator () | |
void | startIteration () const |
prepare iteration | |
bool | hasMore () const |
DocInfo * | nextEntry () const |
fetch the next entry, return a pointer to a local static memory, so do not delete it | |
DocInfo * | nextEntry (DOCID_T documentID) |
fetch the next entry with docID >= <documentID> | |
DocInfo * | currentEntry () |
virtual DocInfo * | newElement () const |
Create new element of this list type for the iterator. | |
virtual void | assignElement (DocInfo *to, DocInfo *from) const |
copy values from one Element (of type DocInfo) to another | |
virtual DocInfo * | getElement (DocInfo *elem, POS_T position) const |
set element from position, returns pointer to the element | |
virtual POS_T | beginPosition () const |
Position at beginning of list. | |
virtual POS_T | endPosition () const |
Position at end of list. | |
virtual POS_T | nextPosition (POS_T position) const |
Advance to next position. |
|
|
|
|
|
copy values from one Element (of type DocInfo) to another
Implements DocPositionInfoList. |
|
Position at beginning of list.
Implements DocPositionInfoList. |
|
Implements DocPositionInfoList. |
|
Position at end of list.
Implements DocPositionInfoList. |
|
set element from position, returns pointer to the element
Implements DocPositionInfoList. |
|
Important note: In this implementation, hasMore() invalidates any structures returned by nextEntry() or nextEntry( docID ). Implements DocInfoList. |
|
Create new element of this list type for the iterator.
Implements DocPositionInfoList. |
|
fetch the next entry with docID >= <documentID>
Implements DocPositionInfoList. |
|
fetch the next entry, return a pointer to a local static memory, so do not delete it
Implements DocPositionInfoList. |
|
Advance to next position.
Implements DocPositionInfoList. |
|
prepare iteration
Implements DocInfoList. |