com.sun.labs.minion.retrieval
Class If

java.lang.Object
  extended by com.sun.labs.minion.retrieval.QueryElement
      extended by com.sun.labs.minion.retrieval.Operator
          extended by com.sun.labs.minion.retrieval.UnaryOperator
              extended by com.sun.labs.minion.retrieval.If
All Implemented Interfaces:
java.lang.Comparable

public class If
extends UnaryOperator

A class implementing the if query operator. This operator takes a single argument and returns a strict boolean results set.


Field Summary
 
Fields inherited from class com.sun.labs.minion.retrieval.Operator
log, logTag, operands
 
Fields inherited from class com.sun.labs.minion.retrieval.QueryElement
estSize, fieldMultipliers, inOrder, keepPositions, order, part, qc, searchFieldNames, searchFields, strictEval, wc, wf
 
Constructor Summary
If(QueryElement operand)
          Constructs an if operator that will use the given operand .
 
Method Summary
 ArrayGroup eval(ArrayGroup ag)
          Evaluates this operator, returning the results.
 
Methods inherited from class com.sun.labs.minion.retrieval.UnaryOperator
calculateEstimatedSize
 
Methods inherited from class com.sun.labs.minion.retrieval.Operator
addSearchFieldName, getOperands, getQueryTerms, setOperands, setPartition, setQueryConfig, setWeightingComponents, setWeightingFunction, toString, toString, toStringMod
 
Methods inherited from class com.sun.labs.minion.retrieval.QueryElement
compareTo, dump, estimateSize, getInOrder, getOrder, getQueryTerms, getSearchFieldNames, setInOrder, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

If

public If(QueryElement operand)
Constructs an if operator that will use the given operand .

Method Detail

eval

public ArrayGroup eval(ArrayGroup ag)
Evaluates this operator, returning the results.

Overrides:
eval in class QueryElement