public class DocSetUtil extends Object
Constructor and Description |
---|
DocSetUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
collectSortedDocSet(DocSet docs,
IndexReader reader,
Collector collector) |
static DocSet |
createDocSet(SolrIndexSearcher searcher,
Query query,
DocSet filter) |
static DocSet |
createDocSet(SolrIndexSearcher searcher,
Term term) |
static DocSet |
createDocSetGeneric(SolrIndexSearcher searcher,
Query query) |
static boolean |
equals(DocSet a,
DocSet b)
Iterates DocSets to test for equality - slow and for testing purposes only.
|
static DocSet |
getDocSet(DocSetCollector collector,
SolrIndexSearcher searcher)
This variant of getDocSet will attempt to do some deduplication
on certain DocSets such as DocSets that match numDocs.
|
static DocSet |
getDocSet(DocSet docs,
SolrIndexSearcher searcher)
This variant of getDocSet maps all sets with size numDocs to searcher.getLiveDocs.
|
static int |
smallSetSize(int maxDoc)
The cut-off point for small sets (SortedIntDocSet) vs large sets (BitDocSet)
|
static DocSet |
toSmallSet(BitDocSet bitSet) |
public static int smallSetSize(int maxDoc)
public static boolean equals(DocSet a, DocSet b)
public static DocSet getDocSet(DocSetCollector collector, SolrIndexSearcher searcher)
public static DocSet getDocSet(DocSet docs, SolrIndexSearcher searcher)
public static DocSet createDocSet(SolrIndexSearcher searcher, Query query, DocSet filter) throws IOException
IOException
public static DocSet createDocSetGeneric(SolrIndexSearcher searcher, Query query) throws IOException
IOException
public static DocSet createDocSet(SolrIndexSearcher searcher, Term term) throws IOException
IOException
public static void collectSortedDocSet(DocSet docs, IndexReader reader, Collector collector) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.