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.)
-
WAISBoolOp(Query, String)
- Construct a new WAISBoolOp
-
GetOperator()
- Return the string that is the operator for this WAISBoolOp
-
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 WAISBoolOp.
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)
GetOperator
public String GetOperator()
- Return the string that is the operator for this WAISBoolOp
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
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