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

Class wais.WAISProxOp

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

public class WAISProxOp
extends ExpNode
implements SourceNode
An ExpNode that represents a proximity operatory in a WAIS query expression. Each WAISProxOp has two children, which are the operands of the proximity operator and two properties: - ordered - a boolean determining whether word order counts in the proximity. - unit - the "number of words" value for the proximity.

Constructor Index

 o WAISProxOp(Query, boolean, int)
Construct a new WAISProxOp.

Method Index

 o Ordered_p()
Predicate to determine whether word order matters for the proximity.
 o ProxDistance()
Return the proximity distance value.
 o RankBy(Document)
This is a slot to do some primitive ranking on this sub-tree.
 o Unparse()
Return the string the represents the unparsed representation of the sub-tree rooted at the WAISProxOp

Constructors

 o WAISProxOp
  public WAISProxOp(Query query,
                    boolean ordered,
                    int unit)
Construct a new WAISProxOp.
Parameters:
query - The query context of the proximity operator
ordered - A boolean determining whether word order matters
unit - The "number of words between" value for the proximity.

Methods

 o Ordered_p
  public boolean Ordered_p()
Predicate to determine whether word order matters for the proximity.
 o ProxDistance
  public int ProxDistance()
Return the proximity distance value.
 o Unparse
  public String Unparse()
Return the string the represents the unparsed representation of the sub-tree rooted at the WAISProxOp
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