#include <QueryDocument.hpp>
Inheritance diagram for lemur::api::QueryDocument:
Public Member Functions | |
QueryDocument () | |
~QueryDocument () | |
void | startTermIteration () const |
start term iteration | |
bool | hasMore () const |
returns true iff there's at least one term for iteration | |
void | skipToEnd () const |
"fast forward" to the end of the document | |
const Term * | nextTerm () const |
get the next term. do not delete TT returned | |
void | addTerm (const char *token) |
char * | handleWord (char *word) |
Handle a word, possibly transforming it. | |
char * | handleSymbol (char *sym) |
Handle a word, possibly transforming it. | |
const char * | getID () const |
returns the external string ID | |
void | setID (const char *idstr) |
Private Attributes | |
char * | id |
vector< char * > | tokens |
int | iter |
Term | tt |
Creates a Document object compatible with TextQuery and StructQuery. Also a TH so it can be chained at the end of stoppers, stemmers, InqueryOpParser, (etc.) for query processing.
|
|
|
|
|
|
|
returns the external string ID
Implements lemur::api::Document. |
|
Handle a word, possibly transforming it.
Reimplemented from lemur::api::TextHandler. |
|
Handle a word, possibly transforming it.
Reimplemented from lemur::api::TextHandler. |
|
returns true iff there's at least one term for iteration
Implements lemur::api::Document. |
|
get the next term. do not delete TT returned
Implements lemur::api::Document. |
|
|
|
"fast forward" to the end of the document
Implements lemur::api::Document. |
|
start term iteration
Implements lemur::api::Document. |
|
|
|
|
|
|
|
|