com.sun.labs.minion.query
Class Not

java.lang.Object
  extended by com.sun.labs.minion.query.Element
      extended by com.sun.labs.minion.query.Operator
          extended by com.sun.labs.minion.query.Not
All Implemented Interfaces:
java.lang.Iterable<Element>

public class Not
extends Operator

A boolean not operator. Note that boolean not is a unary operator.


Field Summary
 
Fields inherited from class com.sun.labs.minion.query.Operator
elements
 
Fields inherited from class com.sun.labs.minion.query.Element
fields, strict
 
Constructor Summary
Not()
          Creates an empty boolean negation.
Not(Element element)
          Creates a boolean negation of the given element.
 
Method Summary
 QueryElement getQueryElement()
          Transduces this query element into a "real" query element, one that can be evaluated by the search engine.
 
Methods inherited from class com.sun.labs.minion.query.Operator
add, getOperands, iterator
 
Methods inherited from class com.sun.labs.minion.query.Element
addField, getFields, getStrict, setFields, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Not

public Not()
Creates an empty boolean negation. This will return all documents.


Not

public Not(Element element)
Creates a boolean negation of the given element. A document will be in the result set for this operator only if it is not in the result set for the provided element.

A boolean negation is strictly evaluated: a document is either in the result set or it is not. Documents in the result set for this operator will not have scores associated with them.

Parameters:
element -
Method Detail

getQueryElement

public QueryElement getQueryElement()
Description copied from class: Element
Transduces this query element into a "real" query element, one that can be evaluated by the search engine.

Specified by:
getQueryElement in class Element
Returns:
an evaluatable query element.