Package ca.cgjennings.algo
Class TextIndex.And
- java.lang.Object
-
- ca.cgjennings.algo.TextIndex.Query
-
- ca.cgjennings.algo.TextIndex.And
-
- Enclosing class:
- TextIndex
public static class TextIndex.And extends TextIndex.Query
A query that matches only documents that match both of two child queries.
-
-
Constructor Summary
Constructors Constructor Description And(TextIndex.Query q1, TextIndex.Query q2)Creates a new query that is the logical and of the specified queries.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextIndex.Resultexecute(TextIndex ti)Returns theResultof performing this query against a specific text index.java.lang.StringtoString()-
Methods inherited from class ca.cgjennings.algo.TextIndex.Query
evaluate
-
-
-
-
Constructor Detail
-
And
public And(TextIndex.Query q1, TextIndex.Query q2)
Creates a new query that is the logical and 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.QueryReturns theResultof performing this query against a specific text index.- Specified by:
executein 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:
toStringin classjava.lang.Object
-
-