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.
-
WAISProxOp(Query, boolean, int)
- Construct a new WAISProxOp.
-
Ordered_p()
- Predicate to determine whether word order matters for the
proximity.
-
ProxDistance()
- Return the proximity distance value.
-
RankBy(Document)
- This is a slot to do some primitive ranking on this sub-tree.
-
Unparse()
- Return the string the represents the unparsed representation
of the sub-tree rooted at the WAISProxOp
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.
Ordered_p
public boolean Ordered_p()
- Predicate to determine whether word order matters for the
proximity.
ProxDistance
public int ProxDistance()
- Return the proximity distance value.
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
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