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

Class wais.WAISRelOp

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

public class WAISRelOp
extends ExpNode
implements SourceNode
An ExpNode that represents a relational Operator in a WAIS query expression. Each WAISBoolOp has one child, which is always a WAISWordLiteral, and two properties: operator - a string that is the relational operator (e.g. =, >) field - the database field for the operator (e.g. au, ti)

Constructor Index

 o WAISRelOp(Query, String, String)
Construct a new WAISRelOp.

Method Index

 o GetField()
Return the string that is the database field for this operator.
 o GetOperator()
Return the string that is the operator for this node
 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 WAISRelOp.

Constructors

 o WAISRelOp
  public WAISRelOp(Query query,
                   String operator,
                   String field)
Construct a new WAISRelOp.
Parameters:
query - Query context of the relational operator
operator - String that is the operator.
field - Database field for the operator.

Methods

 o GetOperator
  public String GetOperator()
Return the string that is the operator for this node
 o GetField
  public String GetField()
Return the string that is the database field for this operator.
 o Unparse
  public String Unparse()
Return the string that represents the unparsed representation of the sub-tree rooted at this WAISRelOp.
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