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)
-
WAISRelOp(Query, String, String)
- Construct a new WAISRelOp.
-
GetField()
- Return the string that is the database field for this
operator.
-
GetOperator()
- Return the string that is the operator for this node
-
RankBy(Document)
- This is a slot to do some primitive ranking on this sub-tree.
-
Unparse()
- Return the string that represents the unparsed representation
of the sub-tree rooted at this WAISRelOp.
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.
GetOperator
public String GetOperator()
- Return the string that is the operator for this node
GetField
public String GetField()
- Return the string that is the database field for this
operator.
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
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