com.sun.labs.minion.retrieval
Class Within

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.Proximity
              extended by com.sun.labs.minion.retrieval.Near
                  extended by com.sun.labs.minion.retrieval.Within
All Implemented Interfaces:
java.lang.Comparable

public class Within
extends Near

The WITHIN query operator. Takes a window size and a number of operands and finds documents that contain all of the operands within the given window size.


Field Summary
 
Fields inherited from class com.sun.labs.minion.retrieval.Proximity
gapPenalty, logTag, maxMissing, maxWindow, minWindow, ocTerms, oooPenalty, orderedOps, storePassages, terms
 
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
Within(java.util.List operands)
          Creates a within operator with a default window size of 1000 words.
Within(java.util.List operands, int size)
          Creates a within operator.
 
Method Summary
 
Methods inherited from class com.sun.labs.minion.retrieval.Near
calculateEstimatedSize, eval, toStringMod
 
Methods inherited from class com.sun.labs.minion.retrieval.Proximity
arrayCopy, calcPenalty, checkPositions, evalTerms, printCols, setGap, setOOO, setStorePassages, setWindow
 
Methods inherited from class com.sun.labs.minion.retrieval.Operator
addSearchFieldName, getOperands, getQueryTerms, setOperands, setPartition, setQueryConfig, setWeightingComponents, setWeightingFunction, toString, toString
 
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
 

Constructor Detail

Within

public Within(java.util.List operands)
Creates a within operator with a default window size of 1000 words.

Parameters:
operands - the list of operands for the operator

Within

public Within(java.util.List operands,
              int size)
Creates a within operator.

Parameters:
operands - the list of operands for the operator
size - the maximum window size in which the operands must occur