|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.retrieval.ArrayGroup
com.sun.labs.minion.retrieval.NegativeGroup
public class NegativeGroup
A subclass of ArrayGroup that is used to represent negative results
sets. That is, a set where the contents of the set is everything except
the documents contained in the array. Such a set can be generated by a
<not> operator, or by combining negative and
non-negative sets using certain boolean operators.
Negative sets do not have any scores associated with the documents they contain.
| Nested Class Summary | |
|---|---|
protected class |
NegativeGroup.NegativeDocIterator
A class containing an iterator for the documents in this group. |
| Nested classes/interfaces inherited from class com.sun.labs.minion.retrieval.ArrayGroup |
|---|
ArrayGroup.DocIterator |
| Field Summary |
|---|
| Fields inherited from class com.sun.labs.minion.retrieval.ArrayGroup |
|---|
docs, logTag, part, pass, queryTerms, size, sm, width |
| Constructor Summary | |
|---|---|
protected |
NegativeGroup()
|
protected |
NegativeGroup(ArrayGroup ag)
Constructs a negative group from the given group. |
protected |
NegativeGroup(int[] docs,
int l)
Constructs a negative group from the given set of documents. |
| Method Summary | |
|---|---|
ArrayGroup |
agIntersect(ArrayGroup ag)
Intersects a strict group with this group. |
ArrayGroup |
agUnion(ArrayGroup ag)
Union a strict group with this group. |
ArrayGroup |
destructiveIntersect(PostingsIterator pi)
Intersects a postings iterator with this group, destructively. |
boolean |
equals(java.lang.Object o)
Tests two negative groups for equality. |
ArrayGroup |
getNegative()
Gets a negative version of this group. |
int |
getSize()
Returns the size of this set. |
ArrayGroup |
getStrict()
Gets a strict version of this array group, which just returns this group as an array group. |
ArrayGroup |
intersect(NegativeGroup ag)
Intersect a negative group with this group. |
ArrayGroup |
intersect(QueryTerm t)
Intersects the documents generated by the term with the ones in this group. |
ArrayGroup |
intersect(ScoredGroup ag)
Intersects a scored group with this group. |
ArrayGroup.DocIterator |
iterator()
Gets an iterator that will return each document in the set. |
java.lang.String |
toString()
|
ArrayGroup |
union(NegativeGroup ag)
Union a negative group with this group. |
ArrayGroup |
union(ScoredGroup ag)
Union a scored group with this group. |
| Methods inherited from class com.sun.labs.minion.retrieval.ArrayGroup |
|---|
addDoc, addPassage, addPassage, clone, destructiveIntersect, getDoc, getDocs, getPartition, getPassages, getScored, init, init, intersect, mult, normalize, removeDeleted, removeDeleted, resize, retain, setDoc, setPartition, setScoreModifier, setSize, union, union, union |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected NegativeGroup()
protected NegativeGroup(ArrayGroup ag)
protected NegativeGroup(int[] docs,
int l)
| Method Detail |
|---|
public ArrayGroup getStrict()
getStrict in class ArrayGrouppublic ArrayGroup getNegative()
getNegative in class ArrayGroupArrayGroup, since
there are no scores associated with the documents in a negative set.public int getSize()
getSize in class ArrayGrouppublic ArrayGroup intersect(QueryTerm t)
intersect in class ArrayGroupt - The term to intersect with the current set.
public ArrayGroup destructiveIntersect(PostingsIterator pi)
destructiveIntersect in class ArrayGrouppublic ArrayGroup agUnion(ArrayGroup ag)
agUnion in class ArrayGroupag - The scored group to union with this group.
public ArrayGroup union(ScoredGroup ag)
union in class ArrayGroupag - The scored group to union with this group.
public ArrayGroup union(NegativeGroup ag)
union in class ArrayGroupag - The scored group to union with this group.
public ArrayGroup agIntersect(ArrayGroup ag)
StrictGroup.
agIntersect in class ArrayGroupag - The scored group to intersect with this group.
StrictGroup is returned.public ArrayGroup intersect(ScoredGroup ag)
intersect in class ArrayGroupag - The scored group to intersect with this group.
ScoredGroup is returned.public ArrayGroup intersect(NegativeGroup ag)
intersect in class ArrayGroupag - The scored group to intersect with this group.
NegativeGroup is returned.public ArrayGroup.DocIterator iterator()
iterator in class ArrayGrouppublic boolean equals(java.lang.Object o)
equals in class ArrayGrouptrue if the groups contain the same documents,
false otherwise.public java.lang.String toString()
toString in class ArrayGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||