|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.facet.util.ScoredDocIdsUtils
public class ScoredDocIdsUtils
Utility methods for Scored Doc IDs.
Constructor Summary | |
---|---|
ScoredDocIdsUtils()
|
Method Summary | |
---|---|
static ScoredDocIDs |
createAllDocsScoredDocIDs(IndexReader reader)
Creates a ScoredDocIDs which returns document IDs all non-deleted doc ids
according to the given reader. |
static ScoredDocIDs |
createScoredDocIds(DocIdSet docIdSet,
int maxDoc)
Create a ScoredDocIDs out of a given docIdSet and the total number of documents in an index |
static ScoredDocIDs |
createScoredDocIDsSubset(ScoredDocIDs allDocIds,
int[] sampleSet)
Create a subset of an existing ScoredDocIDs object. |
static ScoredDocIDs |
getComplementSet(ScoredDocIDs docids,
IndexReader reader)
Create a complement of the input set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScoredDocIdsUtils()
Method Detail |
---|
public static final ScoredDocIDs getComplementSet(ScoredDocIDs docids, IndexReader reader) throws IOException
ScoredDocIDs
does not contain any scores, which makes sense given that the complementing
documents were not scored.
Note: the complement set does NOT contain doc ids which are noted as deleted by the given reader
docids
- to be complemented.reader
- holding the number of documents & information about deletions.
IOException
public static final ScoredDocIDs createScoredDocIDsSubset(ScoredDocIDs allDocIds, int[] sampleSet) throws IOException
allDocIds
- orginal setsampleSet
- Doc Ids of the subset.
IOException
public static final ScoredDocIDs createAllDocsScoredDocIDs(IndexReader reader)
ScoredDocIDs
which returns document IDs all non-deleted doc ids
according to the given reader.
The returned set contains the range of [0 .. reader.maxDoc ) doc ids
public static final ScoredDocIDs createScoredDocIds(DocIdSet docIdSet, int maxDoc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |