com.sun.labs.minion.retrieval
Class Or

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.Or
All Implemented Interfaces:
java.lang.Comparable

public class Or
extends Operator


Field Summary
protected static java.lang.String logTag
           
 
Fields inherited from class com.sun.labs.minion.retrieval.Operator
operands
 
Fields inherited from class com.sun.labs.minion.retrieval.QueryElement
estSize, fieldMultipliers, inOrder, keepPositions, order, part, qc, qs, searchFieldNames, searchFields, strictEval, wc, wf
 
Constructor Summary
Or(java.util.List operands)
          Constructs an AND operator that takes a list of operands.
 
Method Summary
protected  int calculateEstimatedSize()
          Estimates the size of the results set.
 ArrayGroup eval(ArrayGroup ag)
          Evaluates this operator, returning the results.
 
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, getQueryStats, getQueryTerms, getSearchFieldNames, setInOrder, setOrder, setQueryStats, setSearchFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logTag

protected static java.lang.String logTag
Constructor Detail

Or

public Or(java.util.List operands)
Constructs an AND operator that takes a list of operands.

Method Detail

calculateEstimatedSize

protected int calculateEstimatedSize()
Estimates the size of the results set. This is the sum of the estimated sizes for each of the operands.

Specified by:
calculateEstimatedSize in class QueryElement
Returns:
The estimated size of the results set for this element. This is meant to be an as-tight-as-possible estimate of the results set size. It is acceptable to overestimate, but not to underestimate the size of the result set.

eval

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

Overrides:
eval in class QueryElement