Tanl Linguistic Pipeline

IXE::PostingList::remap_iterator Class Reference

Iterates through postings, but skipping those for documents which have been remapped. More...

#include <PostingList.h>

Inheritance diagram for IXE::PostingList::remap_iterator:
IXE::PostingList::const_iterator

List of all members.

Public Member Functions

 remap_iterator (size_type s, byte const *p, int displace, Remap &remap)
remap_iteratoroperator++ ()
 Advance a PostingList::const_iterator.

Detailed Description

Iterates through postings, but skipping those for documents which have been remapped.


Constructor & Destructor Documentation

IXE::PostingList::remap_iterator::remap_iterator ( size_type  s,
byte const *  p,
int  displace,
Remap remap 
) [inline]

Member Function Documentation

PostingList::remap_iterator & IXE::PostingList::remap_iterator::operator++ (  ) 

Advance a PostingList::const_iterator.

Returns:
a reference to itself as is standard practice for iterators.

A posting has the following format:

I[0x80{M}...0x80]OL{H}^O

that is: a DocID (I) followed by zero or more TermColors (M) surrounded by 0x80 bytes, followed by the number of occurrences in the document (O), followed by the byte length of the hitlist less O (L), followed by O hits, i.e. positions where the word occurs in document I. Each H is a document position, represented as delta increment with respect to the previous one. First word is at position 1.

See also:
Indexer::writeIndex() for full details of the index file format.

Reimplemented from IXE::PostingList::const_iterator.

References IXE::PostingList::const_iterator::c_, IXE::PostingList::const_iterator::index(), IXE::PostingList::const_iterator::next(), and IXE::PostingList::const_iterator::rest_.

Referenced by remap_iterator().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.