Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

StructQueryRep Class Reference

#include <StructQueryRep.hpp>

Inheritance diagram for StructQueryRep:

QueryRep InQueryRep List of all members.

Public Methods

 StructQueryRep (StructQuery &qry, Index &dbIndex, double dbelief=0)
 Parse the text representation into a structured query rep.

virtual ~StructQueryRep ()
virtual QueryNodetopnode ()
 Get the topnode of the query parse tree.

virtual void setTopnode (QueryNode *qn)
 Set the topnode of the query parse tree.


Private Types

typedef QueryNode *(StructQueryRep::* getFunc )(StructQuery &, TokenTerm *, double)
 pointer to member function for getting a node.


Private Methods

QnListgetChildren (StructQuery &qry, getFunc fn, bool weigh=false)
 Parse the text representation of the children of a query node.

QueryNodegetQryNode (StructQuery &qry, TokenTerm *tok, double w)
 Parse the text representation of a weighted query node.

QueryNodegetProxQryNode (StructQuery &qry, TokenTerm *tok, double w=1.0)
 Parse the text representation of a proximity query node.


Private Attributes

QueryNodetopNode
 Top node of the query parse tree.

QueryNodeqStack [100]
 stack of query nodes for parsing nested nodes.

int topqStack
double dw
 default weight.

Indexind
 Our index.

int numDocs
 number of docs in collection (reduce calls to docCount.


Detailed Description

Structured query representation. Converts the textual representation of the structured query into a tree structure of QueryNodes. Constructs the proximity lists and DocInfoLists for the individual nodes, pruning the set of documents that will actually need to be scored.


Member Typedef Documentation

typedef QueryNode*(StructQueryRep::* StructQueryRep::getFunc)(StructQuery &, TokenTerm *, double) [private]
 

pointer to member function for getting a node.


Constructor & Destructor Documentation

StructQueryRep::StructQueryRep StructQuery   qry,
Index   dbIndex,
double    dbelief = 0
 

Parse the text representation into a structured query rep.

virtual StructQueryRep::~StructQueryRep   [inline, virtual]
 


Member Function Documentation

QnList * StructQueryRep::getChildren StructQuery   qry,
getFunc    fn,
bool    weigh = false
[private]
 

Parse the text representation of the children of a query node.

QueryNode * StructQueryRep::getProxQryNode StructQuery   qry,
TokenTerm   tok,
double    w = 1.0
[private]
 

Parse the text representation of a proximity query node.

QueryNode * StructQueryRep::getQryNode StructQuery   qry,
TokenTerm   tok,
double    w
[private]
 

Parse the text representation of a weighted query node.

virtual void StructQueryRep::setTopnode QueryNode   qn [inline, virtual]
 

Set the topnode of the query parse tree.

virtual QueryNode* StructQueryRep::topnode   [inline, virtual]
 

Get the topnode of the query parse tree.


Member Data Documentation

double StructQueryRep::dw [private]
 

default weight.

Index& StructQueryRep::ind [private]
 

Our index.

int StructQueryRep::numDocs [private]
 

number of docs in collection (reduce calls to docCount.

QueryNode* StructQueryRep::qStack[100] [private]
 

stack of query nodes for parsing nested nodes.

QueryNode* StructQueryRep::topNode [private]
 

Top node of the query parse tree.

int StructQueryRep::topqStack [private]
 

This is an accident waiting to happen! dmf index of top of qStack.


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:07 2004 for LEMUR by doxygen1.2.16