public class UnInvertedField extends DocTermOrds
Modifier and Type | Class and Description |
---|---|
static interface |
UnInvertedField.Callback |
class |
UnInvertedField.DocToTerm |
checkForDocValues, DEFAULT_INDEX_INTERVAL_BITS, field, index, indexedTermsArray, maxTermDocFreq, numTermsInField, ordBase, phase1_time, postingsEnum, prefix, sizeOfIndexedStrings, termInstances, tnums, total_time
Constructor and Description |
---|
UnInvertedField(String field,
SolrIndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
static UnInvertedField |
checkUnInvertedField(String field,
SolrIndexSearcher searcher) |
void |
collectDocs(org.apache.solr.search.facet.FacetFieldProcessorByArrayUIF processor) |
void |
collectDocsGeneric(org.apache.solr.search.facet.FacetFieldProcessorByArrayUIF processor) |
int |
getNumTerms() |
static UnInvertedField |
getUnInvertedField(String field,
SolrIndexSearcher searcher) |
long |
memSize() |
protected static void |
rethrowAsSolrException(String field,
Throwable e) |
protected void |
setActualDocFreq(int termNum,
int docFreq)
Invoked during
DocTermOrds.uninvert(org.apache.lucene.index.LeafReader,Bits,BytesRef)
to record the document frequency for each uninverted
term. |
String |
toString() |
protected void |
visitTerm(TermsEnum te,
int termNum)
Called for each term in the field being uninverted.
|
getOrdTermsEnum, isEmpty, iterator, lookupTerm, numTerms, ramBytesUsed, uninvert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
public UnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
protected void visitTerm(TermsEnum te, int termNum) throws IOException
maxTermCounts
for all bigTerms as well as storing them in bigTerms
.visitTerm
in class DocTermOrds
te
- positioned at the current term.termNum
- the ID/pointer/ordinal of the current term. Monotonically increasing between calls.IOException
protected void setActualDocFreq(int termNum, int docFreq)
DocTermOrds
DocTermOrds.uninvert(org.apache.lucene.index.LeafReader,Bits,BytesRef)
to record the document frequency for each uninverted
term.setActualDocFreq
in class DocTermOrds
public long memSize()
public int getNumTerms()
public void collectDocs(org.apache.solr.search.facet.FacetFieldProcessorByArrayUIF processor) throws IOException
IOException
public void collectDocsGeneric(org.apache.solr.search.facet.FacetFieldProcessorByArrayUIF processor) throws IOException
IOException
public static UnInvertedField getUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
public static UnInvertedField checkUnInvertedField(String field, SolrIndexSearcher searcher) throws IOException
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.