Package ca.cgjennings.algo
Class TextIndex.Or
- java.lang.Object
-
- ca.cgjennings.algo.TextIndex.Query
-
- ca.cgjennings.algo.TextIndex.Or
-
- Enclosing class:
- TextIndex
public static class TextIndex.Or extends TextIndex.Query
A query that matches any documents that match either of two child queries.
-
-
Constructor Summary
Constructors Constructor Description Or(TextIndex.Query q1, TextIndex.Query q2)
Creates a new query that is the logical or of the specified queries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextIndex.Result
execute(TextIndex ti)
Returns theResult
of performing this query against a specific text index.java.lang.String
toString()
-
Methods inherited from class ca.cgjennings.algo.TextIndex.Query
evaluate
-
-
-
-
Constructor Detail
-
Or
public Or(TextIndex.Query q1, TextIndex.Query q2)
Creates a new query that is the logical or of the specified queries.- Parameters:
q1
- the first query operandq2
- the second query operand
-
-
Method Detail
-
execute
public TextIndex.Result execute(TextIndex ti)
Description copied from class:TextIndex.Query
Returns theResult
of performing this query against a specific text index.- Specified by:
execute
in classTextIndex.Query
- Parameters:
ti
- the text index to query- Returns:
- a result that captures the set of matching documents
- See Also:
TextIndex.Query.evaluate(ca.cgjennings.algo.TextIndex)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-