public class UnInvertedField extends DocTermOrds
DEFAULT_INDEX_INTERVAL_BITS, docsEnum, field, index, indexedTermsArray, maxTermDocFreq, numTermsInField, ordBase, phase1_time, prefix, sizeOfIndexedStrings, termInstances, tnums, total_time| Constructor and Description |
|---|
UnInvertedField(String field,
SolrIndexSearcher searcher) |
| Modifier and Type | Method and Description |
|---|---|
NamedList<Integer> |
getCounts(SolrIndexSearcher searcher,
DocSet baseDocs,
int offset,
int limit,
Integer mincount,
boolean missing,
String sort,
String prefix) |
int |
getNumTerms() |
StatsValues |
getStats(SolrIndexSearcher searcher,
DocSet baseDocs,
String[] facet)
Collect statistics about the UninvertedField.
|
static UnInvertedField |
getUnInvertedField(String field,
SolrIndexSearcher searcher) |
long |
memSize() |
protected void |
setActualDocFreq(int termNum,
int docFreq) |
String |
toString() |
protected void |
visitTerm(TermsEnum te,
int termNum) |
getOrdTermsEnum, isEmpty, iterator, lookupTerm, numTerms, ramUsedInBytes, uninvertpublic UnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOExceptionprotected void visitTerm(TermsEnum te, int termNum) throws IOException
visitTerm in class DocTermOrdsIOExceptionprotected void setActualDocFreq(int termNum,
int docFreq)
setActualDocFreq in class DocTermOrdspublic long memSize()
public int getNumTerms()
public NamedList<Integer> getCounts(SolrIndexSearcher searcher, DocSet baseDocs, int offset, int limit, Integer mincount, boolean missing, String sort, String prefix) throws IOException
IOExceptionpublic StatsValues getStats(SolrIndexSearcher searcher, DocSet baseDocs, String[] facet) throws IOException
getCounts(org.apache.solr.search.SolrIndexSearcher, org.apache.solr.search.DocSet, int, int, Integer, boolean, String, String)
It can be used to calculate stats on multivalued fields.
This method is mainly used by the StatsComponent.searcher - The Searcher to use to gather the statisticsbaseDocs - The DocSet to gather the stats onfacet - One or more fields to facet on.StatsValues collectedIOException - If there is a low-level I/O error.public static UnInvertedField getUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.