com.sun.labs.minion.retrieval
Class MultiDictTerm
java.lang.Object
com.sun.labs.minion.retrieval.QueryElement
com.sun.labs.minion.retrieval.QueryTerm
com.sun.labs.minion.retrieval.DictTerm
com.sun.labs.minion.retrieval.MultiDictTerm
- All Implemented Interfaces:
- java.lang.Comparable, java.util.Comparator
public class MultiDictTerm
- extends DictTerm
MultiDictTerm provides the implementation of the TOR operator.
The class both extends DictTerm and contains one or more instances
of DictTerm. During evaluation, almost all of the DictTerm code
is reused in this class with just a little code added in. When
setPartition is called, MultiDictTerm will fill in its own
list of dict entries with the entries generated by calling
setPartition on each of the DictTerms it contains.
|
Field Summary |
protected java.util.Collection |
terms
|
| 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 |
MultiDictTerm(java.util.Collection dictTerms)
|
| Methods inherited from class com.sun.labs.minion.retrieval.QueryElement |
addSearchFieldName, compareTo, dump, estimateSize, getInOrder, getOrder, getQueryStats, getQueryTerms, getSearchFieldNames, setInOrder, setOrder, setQueryStats, setSearchFields, setWeightingComponents, setWeightingFunction |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
terms
protected java.util.Collection terms
MultiDictTerm
public MultiDictTerm(java.util.Collection dictTerms)
setQueryConfig
public void setQueryConfig(QueryConfig qc)
- Set the query config for all the sub-terms.
- Overrides:
setQueryConfig in class QueryTerm
setPartition
public void setPartition(DiskPartition part)
- Overrides the standard DictTerm setPartition. This will
call setPartition on all of terms contained in this
object, then fill in DictTerm.dictEntries with the
dictEntries from all of them.
- Overrides:
setPartition in class DictTerm
- Parameters:
part - the partition that we will be evaluating against
getName
public java.lang.String getName()
- Overrides:
getName in class DictTerm
toString
public java.lang.String toString()
- Overrides:
toString in class DictTerm
toString
public java.lang.String toString(java.lang.String prefix)
- Overrides:
toString in class DictTerm