|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.BitSet
org.LexGrid.LexBIG.Impl.helpers.ScoredBitSet
public class ScoredBitSet
BitSet - extended to keep track of corresponding lucene scores.
Constructor Summary | |
---|---|
ScoredBitSet()
Create a new ScoredBitSet object. |
|
ScoredBitSet(int nbits)
Create new ScoredBitSet object with an initial size of nBits. |
Method Summary | |
---|---|
void |
and(ScoredBitSet set)
And two bitsets together. |
void |
cleanUpScores()
Remove scores which correspond to a bit which is no longer set. |
java.lang.Float |
getScore(int bitIndex)
Get the score at a bitIndex. |
void |
mergeScores(ScoredBitSet bits)
Sums the scores of two bit sets - use this after and'ing two bitsets together. |
void |
set(int bitIndex,
float score)
Set a bit to true, and record its score. |
void |
setScore(int bitIndex,
float score)
Set the score for a particular bit. |
Methods inherited from class java.util.BitSet |
---|
and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, set, set, set, set, size, toString, xor |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScoredBitSet()
public ScoredBitSet(int nbits)
nbits
- Method Detail |
---|
public void set(int bitIndex, float score)
bitIndex
- score
- public java.lang.Float getScore(int bitIndex)
bitIndex
-
public void setScore(int bitIndex, float score)
bitIndex
- score
- public void cleanUpScores()
public void mergeScores(ScoredBitSet bits)
bits
- public void and(ScoredBitSet set)
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |