|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.retrieval.QuickOr
public class QuickOr
Field Summary | |
---|---|
protected int |
added
The number of sets of postings that have been added. |
protected int[] |
docs
The documents that we're storing. |
protected int |
p
The number of unique documents that we're storing. |
protected DiskPartition |
part
The partition for which we're holding documents. |
Constructor Summary | |
---|---|
QuickOr(DiskPartition part,
int estSize)
|
Method Summary | |
---|---|
void |
add(int[] d,
float[] w,
float qw)
Adds an explicit set of documents and weights to this quick or. |
void |
add(PostingsIterator pi)
|
void |
add(PostingsIterator pi,
float fw)
|
void |
addWeightOnly(float qw)
Adds only a weight to this QuickOr. |
ArrayGroup |
getGroup()
|
void |
setQueryStats(QueryStats qs)
|
protected boolean |
shouldStoreAll(DiskPartition part,
int estSize)
Decide whether we should store weights for all documents in a partition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DiskPartition part
protected int[] docs
protected int p
protected int added
Constructor Detail |
---|
public QuickOr(DiskPartition part, int estSize)
Method Detail |
---|
protected boolean shouldStoreAll(DiskPartition part, int estSize)
public void setQueryStats(QueryStats qs)
public void add(PostingsIterator pi)
public void add(PostingsIterator pi, float fw)
public void add(int[] d, float[] w, float qw)
d
- the documents to addw
- the weights associated with the documentsqw
- a weight associated with a query term, which will be
multiplied against the weights in the array.public void addWeightOnly(float qw)
qw
- the query weight of a term to add to this QuickOrpublic ArrayGroup getGroup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |