Class wais.WAISBoolOp
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class wais.WAISBoolOp

java.lang.Object
   |
   +----query.ExpNode
           |
           +----wais.WAISBoolOp

public class WAISBoolOp
extends ExpNode
implements SourceNode
An ExpNode that represents a Boolean Operator in a WAIS query expression. Each WAISBoolOp has two children, which are the operands of the WAISBoolOp and one property: operator - The operator (e.g., and, or, etc.)

Constructor Index

 o WAISBoolOp(Query, String)
Construct a new WAISBoolOp

Method Index

 o GetOperator()
Return the string that is the operator for this WAISBoolOp
 o RankBy(Document)
This is a slot to do some primitive ranking on this sub-tree.
 o Unparse()
Return the string that represents the unparsed representation of the sub-tree rooted at this WAISBoolOp.

Constructors

 o WAISBoolOp
  public WAISBoolOp(Query query,
                    String operator)
Construct a new WAISBoolOp
Parameters:
query - The query context of this WAISBoolOp
operator - The operator (e.g., and , or)

Methods

 o GetOperator
  public String GetOperator()
Return the string that is the operator for this WAISBoolOp
 o Unparse
  public String Unparse()
Return the string that represents the unparsed representation of the sub-tree rooted at this WAISBoolOp.
Overrides:
Unparse in class ExpNode
 o RankBy
  public float RankBy(Document doc)
This is a slot to do some primitive ranking on this sub-tree. Unimplemented now except for the recursion
Parameters:
doc - The document to rank using this sub-tree

All Packages  Class Hierarchy  This Package  Previous  Next  Index