public class UnInvertedField extends DocTermOrds
| Modifier and Type | Class and Description |
|---|---|
static interface |
UnInvertedField.Callback |
class |
UnInvertedField.DocToTerm |
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 |
|---|---|
void |
collectDocs(FacetFieldProcessorByArrayUIF processor) |
void |
collectDocsGeneric(FacetFieldProcessorByArrayUIF processor) |
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,
boolean calcDistinct,
String[] facet)
Collect statistics about the UninvertedField.
|
BytesRef |
getTermValue(TermsEnum te,
int termNum)
may return a reused BytesRef
|
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, ramBytesUsed, 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, boolean calcDistinct, 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 oncalcDistinct - whether distinct values should be collected and countedfacet - One or more fields to facet on.StatsValues collectedIOException - If there is a low-level I/O error.public BytesRef getTermValue(TermsEnum te, int termNum) throws IOException
IOExceptionpublic static UnInvertedField getUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOExceptionpublic void collectDocs(FacetFieldProcessorByArrayUIF processor) throws IOException
IOExceptionpublic void collectDocsGeneric(FacetFieldProcessorByArrayUIF processor) throws IOException
IOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.