Package ca.cgjennings.algo
Class TextIndex.Not
- java.lang.Object
-
- ca.cgjennings.algo.TextIndex.Query
-
- ca.cgjennings.algo.TextIndex.Not
-
- Enclosing class:
- TextIndex
public static class TextIndex.Not extends TextIndex.Query
A query that matches every document except the documents matched by its child query.
-
-
Constructor Summary
Constructors Constructor Description Not(TextIndex.Query q)
Creates a new query that is the logical negation of the specified query.
-
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
-
Not
public Not(TextIndex.Query q)
Creates a new query that is the logical negation of the specified query.- Parameters:
q
- the query to invert
-
-
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
-
-