public class PagedBytesIndexFieldData.PagedBytesEstimator extends Object implements AbstractIndexFieldData.PerValueEstimator
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
adjustForNoTerms(long actualUsed)
Adjust the breaker when no terms were actually loaded, but the field
data takes up space regardless.
|
void |
afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
Adjust the circuit breaker now that terms have been loaded, getting
the actual used either from the parameter (if estimation worked for
the entire set), or from the TermsEnum if it has been wrapped in a
RamAccountingTermsEnum.
|
org.apache.lucene.index.TermsEnum |
beforeLoad(org.apache.lucene.index.Terms terms)
Determine whether the BlockTreeTermsReader.FieldReader can be used
for estimating the field data, adding the estimate to the circuit
breaker if it can, otherwise wrapping the terms in a
RamAccountingTermsEnum to be estimated on a per-term basis.
|
long |
bytesPerValue(org.apache.lucene.util.BytesRef term) |
long |
estimateStringFieldData() |
public long bytesPerValue(org.apache.lucene.util.BytesRef term)
bytesPerValue インタフェース内 AbstractIndexFieldData.PerValueEstimatorpublic long estimateStringFieldData()
public org.apache.lucene.index.TermsEnum beforeLoad(org.apache.lucene.index.Terms terms)
throws IOException
beforeLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatorterms - terms to be estimatedIOExceptionpublic void afterLoad(org.apache.lucene.index.TermsEnum termsEnum,
long actualUsed)
afterLoad インタフェース内 AbstractIndexFieldData.PerValueEstimatortermsEnum - terms that were loadedactualUsed - actual field data memory usagepublic void adjustForNoTerms(long actualUsed)
actualUsed - bytes actually usedCopyright © 2009–2016. All rights reserved.